diff --git a/src/DataProtection/Az.DataProtection.format.ps1xml b/src/DataProtection/Az.DataProtection.format.ps1xml index 0c58e974c198..3fb633a3bbbb 100644 --- a/src/DataProtection/Az.DataProtection.format.ps1xml +++ b/src/DataProtection/Az.DataProtection.format.ps1xml @@ -344,9 +344,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResource @@ -378,9 +378,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AbsoluteDeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AbsoluteDeleteOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AbsoluteDeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AbsoluteDeleteOption @@ -406,9 +406,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdHocBackupRuleOptions + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdHocBackupRuleOptions - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdHocBackupRuleOptions + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdHocBackupRuleOptions @@ -428,9 +428,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBackupTriggerOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBackupTriggerOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBackupTriggerOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBackupTriggerOption @@ -450,9 +450,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBasedTriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBasedTriggerContext - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBasedTriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBasedTriggerContext @@ -472,9 +472,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupDiscreteRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupDiscreteRecoveryPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupDiscreteRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupDiscreteRecoveryPoint @@ -542,9 +542,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesRequest @@ -576,9 +576,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesRequestResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesRequestResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesRequestResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesRequestResource @@ -622,9 +622,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesResponse - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesResponse @@ -644,9 +644,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesResponseResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesResponseResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesResponseResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesResponseResource @@ -672,9 +672,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJob + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJob - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJob + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJob @@ -856,9 +856,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJobResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJobResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJobResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJobResource @@ -884,9 +884,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJobResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJobResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJobResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJobResourceList @@ -906,9 +906,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupParams + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupParams - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupParams + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupParams @@ -934,9 +934,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPoint @@ -956,9 +956,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointBasedRestoreRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointBasedRestoreRequest @@ -1008,9 +1008,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointResource @@ -1036,9 +1036,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointResourceList @@ -1058,9 +1058,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryTimeBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryTimeBasedRestoreRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryTimeBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryTimeBasedRestoreRequest @@ -1110,9 +1110,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRehydrationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRehydrationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRehydrationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRehydrationRequest @@ -1144,9 +1144,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreRequest @@ -1172,9 +1172,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreWithRehydrationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreWithRehydrationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreWithRehydrationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreWithRehydrationRequest @@ -1236,9 +1236,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRule @@ -1264,9 +1264,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureOperationalStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureOperationalStoreParameters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureOperationalStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureOperationalStoreParameters @@ -1298,9 +1298,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureRetentionRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureRetentionRule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureRetentionRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureRetentionRule @@ -1332,9 +1332,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupCriteria @@ -1354,9 +1354,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstance + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstance - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstance + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstance @@ -1394,9 +1394,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResourceList @@ -1416,9 +1416,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupParameters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupParameters @@ -1438,9 +1438,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupPolicy - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupPolicy @@ -1466,9 +1466,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupSchedule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupSchedule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupSchedule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupSchedule @@ -1488,9 +1488,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVault + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVault - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVault + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVault @@ -1510,9 +1510,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResource @@ -1550,9 +1550,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResourceList @@ -1572,9 +1572,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicy - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicy @@ -1600,9 +1600,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyResource @@ -1628,9 +1628,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyResourceList @@ -1650,9 +1650,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BasePolicyRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BasePolicyRule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BasePolicyRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BasePolicyRule @@ -1678,9 +1678,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CheckNameAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CheckNameAvailabilityRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CheckNameAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CheckNameAvailabilityRequest @@ -1706,9 +1706,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CheckNameAvailabilityResult + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CheckNameAvailabilityResult - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CheckNameAvailabilityResult + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CheckNameAvailabilityResult @@ -1740,9 +1740,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryDisplay + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryDisplay - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryDisplay + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryDisplay @@ -1780,9 +1780,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForLogSpecification + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForLogSpecification - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForLogSpecification + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForLogSpecification @@ -1814,9 +1814,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryResponse - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryResponse @@ -1836,9 +1836,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryValueForSingleApi + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryValueForSingleApi - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryValueForSingleApi + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryValueForSingleApi @@ -1870,9 +1870,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOnExpiryOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOnExpiryOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOnExpiryOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOnExpiryOption @@ -1892,9 +1892,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOption @@ -1914,9 +1914,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CustomCopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CustomCopyOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CustomCopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CustomCopyOption @@ -1942,9 +1942,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Datasource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Datasource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Datasource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Datasource @@ -2000,9 +2000,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceSet + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSet - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceSet + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSet @@ -2058,9 +2058,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBase - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBase @@ -2086,9 +2086,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreParameters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreParameters @@ -2114,9 +2114,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Day + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Day - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Day + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Day @@ -2142,9 +2142,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DeleteOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DeleteOption @@ -2170,9 +2170,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetails @@ -2204,9 +2204,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResource @@ -2232,9 +2232,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResourceList @@ -2254,9 +2254,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResource @@ -2294,9 +2294,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResourceList @@ -2316,9 +2316,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResourceTags - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResourceTags @@ -2338,9 +2338,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequest @@ -2384,9 +2384,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestHeaders + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestHeaders - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestHeaders + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestHeaders @@ -2406,9 +2406,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestParameters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestParameters @@ -2428,9 +2428,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Error + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Error - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Error + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Error @@ -2462,9 +2462,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorAdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorAdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorAdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorAdditionalInfo @@ -2484,9 +2484,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ExportJobsResult + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ExportJobsResult - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ExportJobsResult + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ExportJobsResult @@ -2524,9 +2524,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationRequest @@ -2558,9 +2558,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationRequestBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationRequestBase - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationRequestBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationRequestBase @@ -2580,9 +2580,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationResponse - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationResponse @@ -2608,9 +2608,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationResponseBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationResponseBase - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationResponseBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationResponseBase @@ -2630,9 +2630,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ImmediateCopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ImmediateCopyOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ImmediateCopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ImmediateCopyOption @@ -2652,9 +2652,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerError + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerError - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerError + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerError @@ -2674,9 +2674,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerErrorAdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerErrorAdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerErrorAdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerErrorAdditionalInfo @@ -2696,9 +2696,65 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ItemLevelRestoreCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ItemLevelRestoreCriteria + + + + + + + + + + + + ObjectType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ItemLevelRestoreTargetInfo + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ItemLevelRestoreTargetInfo + + + + + + + + + + + + + + + + + + ObjectType + + + RecoveryOption + + + RestoreLocation + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfo + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfo @@ -2730,9 +2786,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoAdditionalDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoAdditionalDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoAdditionalDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoAdditionalDetails @@ -2752,9 +2808,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTask + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTask - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTask + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTask @@ -2792,9 +2848,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTaskAdditionalDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTaskAdditionalDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTaskAdditionalDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTaskAdditionalDetails @@ -2814,9 +2870,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationExtendedInfo @@ -2836,9 +2892,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationJobExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationJobExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationJobExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationJobExtendedInfo @@ -2864,9 +2920,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationResource @@ -2904,9 +2960,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PatchResourceRequestInputTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PatchResourceRequestInputTags - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PatchResourceRequestInputTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PatchResourceRequestInputTags @@ -2926,9 +2982,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PolicyInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PolicyInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PolicyInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PolicyInfo @@ -2954,9 +3010,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ProtectionStatusDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ProtectionStatusDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ProtectionStatusDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ProtectionStatusDetails @@ -2976,9 +3032,43 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RecoveryPointDataStoreDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RangeBasedItemLevelRestoreCriteria + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RangeBasedItemLevelRestoreCriteria + + + + + + + + + + + + + + + + + + ObjectType + + + MaxMatchingValue + + + MinMatchingValue + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RecoveryPointDataStoreDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RecoveryPointDataStoreDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RecoveryPointDataStoreDetails @@ -3040,9 +3130,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RecoveryPointsFilters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RecoveryPointsFilters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RecoveryPointsFilters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RecoveryPointsFilters @@ -3092,9 +3182,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestorableTimeRange + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestorableTimeRange - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestorableTimeRange + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestorableTimeRange @@ -3126,9 +3216,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreFilesTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreFilesTargetInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreFilesTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreFilesTargetInfo @@ -3160,9 +3250,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetails @@ -3188,9 +3278,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfo @@ -3222,9 +3312,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBase - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBase @@ -3256,9 +3346,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTag + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTag - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTag + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTag @@ -3284,9 +3374,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ScheduleBasedBackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ScheduleBasedBackupCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ScheduleBasedBackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ScheduleBasedBackupCriteria @@ -3336,9 +3426,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ScheduleBasedTriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ScheduleBasedTriggerContext - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ScheduleBasedTriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ScheduleBasedTriggerContext @@ -3358,9 +3448,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.StorageSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.StorageSetting - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.StorageSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.StorageSetting @@ -3386,9 +3476,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SupportedFeature + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SupportedFeature - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SupportedFeature + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SupportedFeature @@ -3420,9 +3510,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemData @@ -3472,9 +3562,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TaggingCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TaggingCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TaggingCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TaggingCriteria @@ -3500,9 +3590,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TargetDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TargetDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TargetDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TargetDetails @@ -3534,9 +3624,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TriggerContext - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TriggerContext @@ -3556,9 +3646,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingError + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingError - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingError + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingError @@ -3608,9 +3698,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorProperties + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorProperties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorProperties + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorProperties diff --git a/src/DataProtection/Az.DataProtection.psd1 b/src/DataProtection/Az.DataProtection.psd1 index 0c9196923cd0..1ab455ca7b69 100644 --- a/src/DataProtection/Az.DataProtection.psd1 +++ b/src/DataProtection/Az.DataProtection.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 3/18/2021 +# Generated on: 4/26/2021 # @{ @@ -73,6 +73,7 @@ FunctionsToExport = 'Backup-AzDataProtectionBackupInstanceAdhoc', 'Edit-AzDataProtectionPolicyRetentionRuleClientObject', 'Edit-AzDataProtectionPolicyTagClientObject', 'Edit-AzDataProtectionPolicyTriggerClientObject', + 'Find-AzDataProtectionRestorableTimeRange', 'Get-AzDataProtectionBackupInstance', 'Get-AzDataProtectionBackupPolicy', 'Get-AzDataProtectionBackupVault', 'Get-AzDataProtectionJob', diff --git a/src/DataProtection/Az.DataProtection.psm1 b/src/DataProtection/Az.DataProtection.psm1 index fe0e45781a05..7a740354bbe4 100644 --- a/src/DataProtection/Az.DataProtection.psm1 +++ b/src/DataProtection/Az.DataProtection.psm1 @@ -34,7 +34,7 @@ if(-not $accountsModule) { Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop } elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) { - Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop + Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop } Write-Information "Loaded Module '$($accountsModule.Name)'" diff --git a/src/DataProtection/Changelog.md b/src/DataProtection/Changelog.md index c1e3fd135880..35880ef20f4b 100644 --- a/src/DataProtection/Changelog.md +++ b/src/DataProtection/Changelog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* OnBoarded workload AzureBlobs ## Version 0.1.0 * First preview release for module Az.DataProtection diff --git a/src/DataProtection/build-module.ps1 b/src/DataProtection/build-module.ps1 index 5e8c12e39da3..633278268a86 100644 --- a/src/DataProtection/build-module.ps1 +++ b/src/DataProtection/build-module.ps1 @@ -120,6 +120,10 @@ $moduleName = 'Az.DataProtection' $examplesFolder = Join-Path $PSScriptRoot 'examples' $null = New-Item -ItemType Directory -Force -Path $examplesFolder +Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...' +$modelCmdlets = @() +. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1') -Models $modelCmdlets + if($NoDocs) { Write-Host -ForegroundColor Green 'Creating exports...' Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs -ExamplesFolder $examplesFolder diff --git a/src/DataProtection/check-dependencies.ps1 b/src/DataProtection/check-dependencies.ps1 index 7ada900d8f0e..657140612d88 100644 --- a/src/DataProtection/check-dependencies.ps1 +++ b/src/DataProtection/check-dependencies.ps1 @@ -53,7 +53,7 @@ $tools = Join-Path $PSScriptRoot 'tools' $resourceDir = Join-Path $tools 'Resources' $resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1' -if ($Resources.IsPresent -and (-not (Test-Path -Path $resourceModule))) { +if ($Resources.IsPresent -and ((-not (Test-Path -Path $resourceModule)) -or $RegenerateSupportModule.IsPresent)) { Write-Host -ForegroundColor Green "Building local Resource module used for test..." Set-Location $resourceDir $null = autorest .\readme.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources diff --git a/src/DataProtection/create-model-cmdlets.ps1 b/src/DataProtection/create-model-cmdlets.ps1 new file mode 100644 index 000000000000..11b66e448362 --- /dev/null +++ b/src/DataProtection/create-model-cmdlets.ps1 @@ -0,0 +1,165 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +param([string[]]$Models) + +if ($Models.Count -eq 0) +{ + return +} + +$ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models' +$ModuleName = 'Az.DataProtection'.Split(".")[1] +$OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets' +$null = New-Item -ItemType Directory -Force -Path $OutputDir + +$CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs +$Content = '' +$null = $CsFiles | ForEach-Object -Process { if ($_.Name.Split('.').count -eq 2 ) + { $Content += get-content $_.fullname -raw + } } + +$Tree = [Microsoft.CodeAnalysis.CSharp.SyntaxFactory]::ParseCompilationUnit($Content) +$Nodes = $Tree.ChildNodes().ChildNodes() +foreach ($Model in $Models) +{ + $InterfaceNode = $Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq "I$Model") } + if ($InterfaceNode.count -eq 0) { + continue + } + # through a queue, we iterate all the parent models. + $Queue = @($InterfaceNode) + $visited = @("I$Model") + $AllInterfaceNodes = @() + while ($Queue.count -ne 0) + { + $AllInterfaceNodes += $Queue[0] + # Baselist contains the direct parent models. + foreach ($parent in $Queue[0].BaseList.Types) + { + if (($parent.Type.Right.Identifier.Value -ne 'IJsonSerializable') -and (-not $visited.Contains($parent.Type.Right.Identifier.Value))) + { + $Queue = [Array]$Queue + ($Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq $parent.Type.Right.Identifier.Value) }) + $visited = [Array]$visited + $parent.Type.Right.Identifier.Value + } + } + $first, $Queue = $Queue + } + + $Namespace = $InterfaceNode.Parent.Name + $ObjectType = $Model + $ObjectTypeWithNamespace = "${Namespace}.${ObjectType}" + # remove duplicated module name + if ($ObjectType.StartsWith($ModuleName)) { + $ModulePrefix = '' + } else { + $ModulePrefix = $ModuleName + } + $OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir + + $ParameterDefineScriptList = New-Object System.Collections.Generic.List[string] + $ParameterAssignScriptList = New-Object System.Collections.Generic.List[string] + foreach ($Node in $AllInterfaceNodes) + { + foreach ($Member in $Node.Members) + { + $Arguments = $Member.AttributeLists.Attributes.ArgumentList.Arguments + $Required = $false + $Description = "" + $Readonly = $False + foreach ($Argument in $Arguments) + { + if ($Argument.NameEquals.Name.Identifier.Value -eq "Required") + { + $Required = $Argument.Expression.Token.Value + } + if ($Argument.NameEquals.Name.Identifier.Value -eq "Description") + { + $Description = $Argument.Expression.Token.Value.Trim('.').replace('"', '`"') + } + if ($Argument.NameEquals.Name.Identifier.Value -eq "Readonly") + { + $Readonly = $Argument.Expression.Token.Value + } + } + if ($Readonly) + { + continue + } + $Identifier = $Member.Identifier.Value + $Type = $Member.Type.ToString().replace('?', '').Split("::")[-1] + $ParameterDefinePropertyList = New-Object System.Collections.Generic.List[string] + if ($Required) + { + $ParameterDefinePropertyList.Add("Mandatory") + } + if ($Description -ne "") + { + $ParameterDefinePropertyList.Add("HelpMessage=`"${Description}.`"") + } + $ParameterDefineProperty = [System.String]::Join(", ", $ParameterDefinePropertyList) + $ParameterDefineScript = " + [Parameter($ParameterDefineProperty)] + [${Type}] + `$${Identifier}" + $ParameterDefineScriptList.Add($ParameterDefineScript) + $ParameterAssignScriptList.Add(" + `$Object.${Identifier} = `$${Identifier}") + } + } + $ParameterDefineScript = $ParameterDefineScriptList | Join-String -Separator "," + $ParameterAssignScript = $ParameterAssignScriptList | Join-String -Separator "" + + $Script = " +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the \`"License\`"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \`"AS IS\`" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for ${ObjectType} +.Description +Create a in-memory object for ${ObjectType} + +.Outputs +${ObjectTypeWithNamespace} +.Link +https://docs.microsoft.com/powershell/module//az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object +#> +function New-Az${ModulePrefix}${ObjectType}Object { + [OutputType('${ObjectTypeWithNamespace}')] + [CmdletBinding(PositionalBinding=`$false)] + Param( +${ParameterDefineScript} + ) + + process { + `$Object = [${ObjectTypeWithNamespace}]::New() +${ParameterAssignScript} + return `$Object + } +} +" + Set-Content -Path $OutputPath -Value $Script +} \ No newline at end of file diff --git a/src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 b/src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 index 1bea82d20f11..432a2858aa3c 100644 --- a/src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 +++ b/src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 @@ -55,7 +55,7 @@ foreach($argResponse in $argInstanceResponse) { $jsonStringResponse = $argResponse | ConvertTo-Json -Depth 100 - $backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceResource]::FromJsonString($jsonStringResponse) + $backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResource]::FromJsonString($jsonStringResponse) } return $backupInstances } diff --git a/src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionJobInAzGraph.ps1 b/src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionJobInAzGraph.ps1 index 55d742d08dc3..60d8c7f3e4ef 100644 --- a/src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionJobInAzGraph.ps1 +++ b/src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionJobInAzGraph.ps1 @@ -83,7 +83,7 @@ foreach($jobresponse in $argJobResponse) { $jsonStringResponse = $jobresponse | ConvertTo-Json -Depth 100 - $backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJobResource]::FromJsonString($jsonStringResponse) + $backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJobResource]::FromJsonString($jsonStringResponse) } return $backupJobs } diff --git a/src/DataProtection/custom/Cmdlets/Common/Initialize-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/custom/Cmdlets/Common/Initialize-AzDataProtectionBackupInstance.ps1 index ce4bf601a91a..7bb26cade181 100644 --- a/src/DataProtection/custom/Cmdlets/Common/Initialize-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/custom/Cmdlets/Common/Initialize-AzDataProtectionBackupInstance.ps1 @@ -2,7 +2,7 @@ function Initialize-AzDataProtectionBackupInstance { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Initializes Backup instance Request object for configuring backup')] @@ -29,7 +29,7 @@ function Initialize-AzDataProtectionBackupInstance { process { $manifest = LoadManifest -DatasourceType $DatasourceType.ToString() - $backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstance]::new() + $backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstance]::new() $backupInstance.ObjectType = "BackupInstance" if($PSBoundParameters.ContainsKey("DatasourceId")) @@ -50,7 +50,7 @@ function Initialize-AzDataProtectionBackupInstance { - $backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceResource]::new() + $backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResource]::new() $backupInstanceResource.Property = $backupInstance if($PSBoundParameters.ContainsKey("DatasourceId")) @@ -68,7 +68,7 @@ function Initialize-AzDataProtectionBackupInstance { if($DatasourceType.ToString() -eq "AzureDisk") { - $operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureOperationalStoreParameters]::new() + $operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureOperationalStoreParameters]::new() $operationalParam.DataStoreType = "OperationalStore" $operationalParam.ObjectType = "AzureOperationalStoreParameters" $operationalParam.ResourceGroupId = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}" diff --git a/src/DataProtection/custom/Cmdlets/Common/New-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/custom/Cmdlets/Common/New-AzDataProtectionBackupInstance.ps1 index 215a3677b893..7deea51c6a3c 100644 --- a/src/DataProtection/custom/Cmdlets/Common/New-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/custom/Cmdlets/Common/New-AzDataProtectionBackupInstance.ps1 @@ -20,7 +20,7 @@ function New-AzDataProtectionBackupInstance { ${VaultName}, [Parameter(Mandatory, HelpMessage='Backup instance request object which will be used to configure backup')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource] ${BackupInstance}, [Parameter()] diff --git a/src/DataProtection/custom/Cmdlets/Common/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 b/src/DataProtection/custom/Cmdlets/Common/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 index 73c851da26bb..25c9fcea0702 100644 --- a/src/DataProtection/custom/Cmdlets/Common/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 +++ b/src/DataProtection/custom/Cmdlets/Common/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 @@ -2,7 +2,7 @@ function Update-AzDataProtectionBackupInstanceAssociatedPolicy { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource')] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates associated policy for a given backup instance')] diff --git a/src/DataProtection/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 b/src/DataProtection/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 index 902258205cb6..5624c27e30d8 100644 --- a/src/DataProtection/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 +++ b/src/DataProtection/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 @@ -1,79 +1,208 @@ function Initialize-AzDataProtectionRestoreRequest { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Initializes Restore Request object for triggering restore on a protected backup instance.')] param( - [Parameter(ParameterSetName="RecoveryPointBased", Mandatory, HelpMessage='Datasource Type')] + [Parameter(ParameterSetName="OriginalLocationFullRecovery", Mandatory, HelpMessage='Datasource Type')] + [Parameter(ParameterSetName="AlternateLocationFullRecovery", Mandatory, HelpMessage='Datasource Type')] + [Parameter(ParameterSetName="OriginalLocationILR", Mandatory, HelpMessage='Datasource Type')] + # [Parameter(ParameterSetName="AlternateLocationILR", Mandatory, HelpMessage='Datasource Type')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes] ${DatasourceType}, - [Parameter(ParameterSetName="RecoveryPointBased", Mandatory, HelpMessage='DataStore Type of the Recovery point')] + [Parameter(ParameterSetName="OriginalLocationFullRecovery", Mandatory, HelpMessage='DataStore Type of the Recovery point')] + [Parameter(ParameterSetName="AlternateLocationFullRecovery", Mandatory, HelpMessage='DataStore Type of the Recovery point')] + [Parameter(ParameterSetName="OriginalLocationILR", Mandatory, HelpMessage='DataStore Type of the Recovery point')] + # [Parameter(ParameterSetName="AlternateLocationILR", Mandatory, HelpMessage='DataStore Type of the Recovery point')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreType] ${SourceDataStore}, - [Parameter(ParameterSetName="RecoveryPointBased", Mandatory, HelpMessage='Target Restore Location')] + [Parameter(ParameterSetName="OriginalLocationFullRecovery", Mandatory=$false, HelpMessage='Id of the recovery point to be restored.')] + [Parameter(ParameterSetName="AlternateLocationFullRecovery", Mandatory=$false, HelpMessage='Id of the recovery point to be restored.')] + [Parameter(ParameterSetName="OriginalLocationILR", Mandatory=$false, HelpMessage='Id of the recovery point to be restored.')] + # [Parameter(ParameterSetName="AlternateLocationILR", Mandatory=$false, HelpMessage='Id of the recovery point to be restored.')] + [System.String] + ${RecoveryPoint}, + + [Parameter(ParameterSetName="OriginalLocationFullRecovery", Mandatory=$false, HelpMessage='Point In Time for restore.')] + [Parameter(ParameterSetName="AlternateLocationFullRecovery", Mandatory=$false, HelpMessage='Point In Time for restore.')] + [Parameter(ParameterSetName="OriginalLocationILR", Mandatory=$false, HelpMessage='Point In Time for restore.')] + # [Parameter(ParameterSetName="AlternateLocationILR", Mandatory=$false, HelpMessage='Point In Time for restore.')] + [System.DateTime] + ${PointInTime}, + + [Parameter(ParameterSetName="OriginalLocationFullRecovery", Mandatory, HelpMessage='Target Restore Location')] + [Parameter(ParameterSetName="AlternateLocationFullRecovery", Mandatory, HelpMessage='Target Restore Location')] + [Parameter(ParameterSetName="OriginalLocationILR", Mandatory, HelpMessage='Target Restore Location')] + # [Parameter(ParameterSetName="AlternateLocationILR", Mandatory, HelpMessage='Target Restore Location')] [System.String] ${RestoreLocation}, - [Parameter(ParameterSetName="RecoveryPointBased", Mandatory, HelpMessage='Restore Target Type')] + [Parameter(ParameterSetName="OriginalLocationFullRecovery", Mandatory, HelpMessage='Restore Target Type')] + [Parameter(ParameterSetName="AlternateLocationFullRecovery", Mandatory, HelpMessage='Restore Target Type')] + [Parameter(ParameterSetName="OriginalLocationILR", Mandatory, HelpMessage='Restore Target Type')] + # [Parameter(ParameterSetName="AlternateLocationILR", Mandatory, HelpMessage='Restore Target Type')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetType] ${RestoreType}, - [Parameter(ParameterSetName="RecoveryPointBased", Mandatory=$false, HelpMessage='Target resource Id to which backup data will be restored.')] + #[Parameter(ParameterSetName="OriginalLocationFullRecovery", Mandatory, HelpMessage='Switch Parameter to restore to original location.')] + #[Parameter(ParameterSetName="OriginalLocationILR", Mandatory, HelpMessage='Switch Parameter to restore to original location.')] + #[Switch] + #${OriginialLocationRestore}, + + #[Parameter(ParameterSetName="AlternateLocationFullRecovery", Mandatory, HelpMessage='Switch Parameter to restore to alternate location.')] + # [Parameter(ParameterSetName="AlternateLocationILR", Mandatory, HelpMessage='Switch Parameter to restore to alternate location.')] + #[Switch] + #${AlternateLocationRestore}, + + [Parameter(ParameterSetName="OriginalLocationFullRecovery", Mandatory, HelpMessage='Backup Instance object to trigger original localtion restore.')] + [Parameter(ParameterSetName="OriginalLocationILR", Mandatory, HelpMessage='Backup Instance object to trigger original localtion restore.')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResource] + ${BackupInstance}, + + [Parameter(ParameterSetName="AlternateLocationFullRecovery", Mandatory, HelpMessage='Target resource Id to which backup data will be restored.')] + # [Parameter(ParameterSetName="AlternateLocationILR", Mandatory, HelpMessage='Target resource Id to which backup data will be restored.')] [System.String] ${TargetResourceId}, - [Parameter(ParameterSetName="RecoveryPointBased", Mandatory, HelpMessage='Id of the recovery point to be restored.')] - [System.String] - ${RecoveryPoint} + [Parameter(ParameterSetName="OriginalLocationILR", Mandatory, HelpMessage='Switch Parameter to enable item level recovery.')] + # [Parameter(ParameterSetName="AlternateLocationILR", Mandatory, HelpMessage='Switch parameter to enable item level recovery.')] + [Switch] + ${ItemLevelRecovery}, + + [Parameter(ParameterSetName="OriginalLocationILR", Mandatory=$false, HelpMessage='Container names for Item Level Recovery.')] + # [Parameter(ParameterSetName="AlternateLocationILR", Mandatory=$false, HelpMessage='Container names for Item Level Recovery.')] + [System.String[]] + ${ContainersList}, + + [Parameter(ParameterSetName="OriginalLocationILR", Mandatory=$false, HelpMessage='Minimum matching value for Item Level Recovery.')] + # [Parameter(ParameterSetName="AlternateLocationILR", Mandatory=$false, HelpMessage='Minimum matching value for Item Level Recovery.')] + [System.String[]] + ${FromPrefixPattern}, + + [Parameter(ParameterSetName="OriginalLocationILR", Mandatory=$false, HelpMessage='Maximum matching value for Item Level Recovery.')] + # [Parameter(ParameterSetName="AlternateLocationILR", Mandatory=$false, HelpMessage='Maximum matching value for Item Level Recovery.')] + [System.String[]] + ${ToPrefixPattern} ) process - { + { # Validations $parameterSetName = $PsCmdlet.ParameterSetName - ValidateRestoreOptions -DatasourceType $DatasourceType -RestoreMode $parameterSetName -RestoreTargetType $RestoreType $restoreRequest = $null - # Choose Restore Request Type Based on Mode - if($parameterSetName -eq "RecoveryPointBased") - { - $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointBasedRestoreRequest]::new() + $restoreMode = $null + + # Choose Restore Request Type Based on Recovery Point ID/ Time + if(($RecoveryPoint -ne $null) -and ($RecoveryPoint -ne "")) + { Write-Debug -Message $RecoveryPoint + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointBasedRestoreRequest]::new() $restoreRequest.ObjectType = "AzureBackupRecoveryPointBasedRestoreRequest" $restoreRequest.RecoveryPointId = $RecoveryPoint + $restoreMode = "RecoveryPointBased" + } + elseif(($PointInTime -ne $null) -and ($PointInTime -ne "")) # RecoveryPointInTimeBasedRestore + { + $utcTime = $PointInTime.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") + Write-Debug -Message $utcTime + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryTimeBasedRestoreRequest]::new() + $restoreRequest.ObjectType = "AzureBackupRecoveryTimeBasedRestoreRequest" + $restoreRequest.RecoveryPointTime = $utcTime + $restoreMode = "PointInTimeBased" + } + else{ + $errormsg = "Please input either RecoveryPoint or PointInTime parameter" + throw $errormsg } + + #Validate Restore Options = recoverypoint, ALR,OLR,ILR + ValidateRestoreOptions -DatasourceType $DatasourceType -RestoreMode $restoreMode -RestoreTargetType $RestoreType -ItemLevelRecovery $ItemLevelRecovery # Initialize Restore Target Info based on Type provided - if($RestoreType -eq "AlternateLocation") - { - $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfo]::new() - $restoreRequest.RestoreTargetInfo.ObjectType = "RestoreTargetInfo" + if(!($ItemLevelRecovery)) + { + # RestoreTargetInfo for OLR ALR Full recovery + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfo]::new() + $restoreRequest.RestoreTargetInfo.ObjectType = "restoreTargetInfo" } - if($RestoreType -eq "RestoreAsFiles") + # if($RestoreType -eq "RestoreAsFiles") + # { + # $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreFilesTargetInfo]::new() + # $restoreRequest.RestoreTargetInfo.ObjectType = "RestoreFilesTargetInfo" + # } + else { - $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreFilesTargetInfo]::new() - $restoreRequest.RestoreTargetInfo.ObjectType = "RestoreFilesTargetInfo" + # ILR: ItemLevelRestoreTargetInfo + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ItemLevelRestoreTargetInfo]::new() + $restoreRequest.RestoreTargetInfo.ObjectType = "itemLevelRestoreTargetInfo" + + $restoreCriteriaList = @() + + if($ContainersList.length -gt 0){ + for($i = 0; $i -lt $ContainersList.length; $i++){ + + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RangeBasedItemLevelRestoreCriteria]::new() + + $restoreCriteria.ObjectType = "RangeBasedItemLevelRestoreCriteria" + $restoreCriteria.MinMatchingValue = $ContainersList[$i] + $restoreCriteria.MaxMatchingValue = $ContainersList[$i] + "-0" + + # adding a criteria for each container given + $restoreCriteriaList += ($restoreCriteria) + } + } + elseif($FromPrefixPattern.length -gt 0){ + + if(($FromPrefixPattern.length -ne $ToPrefixPattern.length) -or ($FromPrefixPattern.length -gt 10) -or ($ToPrefixPattern.length -gt 10)){ + $errormsg = "FromPrefixPattern and ToPrefixPattern parameters maximum length can be 10 and must be equal " + throw $errormsg + } + + for($i = 0; $i -lt $FromPrefixPattern.length; $i++){ + + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RangeBasedItemLevelRestoreCriteria]::new() + + $restoreCriteria.ObjectType = "RangeBasedItemLevelRestoreCriteria" + $restoreCriteria.MinMatchingValue = $FromPrefixPattern[$i] + $restoreCriteria.MaxMatchingValue = $ToPrefixPattern[$i] + + # adding a criteria for each container given + $restoreCriteriaList += ($restoreCriteria) + } + } + else{ + $errormsg = "Provide ContainersList or Prefixes for Item Level Recovery" + throw $errormsg + } + + $restoreRequest.RestoreTargetInfo.RestoreCriterion = $restoreCriteriaList } - # Fill other fields of Restore Object based on inputs given + # Fill other fields of Restore Object based on inputs given $restoreRequest.SourceDataStoreType = $SourceDataStore $restoreRequest.RestoreTargetInfo.RestoreLocation = $RestoreLocation - if( ($TargetResourceId -ne $null) -and ($TargetResourceId -ne "") ) - { - if($RestoreType -eq "AlternateLocation") + if($RestoreType -eq "AlternateLocation"){ + $resourceId = $TargetResourceId + } + elseif($RestoreType -eq "OriginalLocation"){ + $resourceId = $BackupInstance.Property.DataSourceInfo.ResourceId + } + + if( ($resourceId -ne $null) -and ($resourceId -ne "") ) + { + # set DatasourceInfo for OLR, ALR, OriginalLocationILR + $restoreRequest.RestoreTargetInfo.DatasourceInfo = GetDatasourceInfo -ResourceId $resourceId -ResourceLocation $RestoreLocation -DatasourceType $DatasourceType + $manifest = LoadManifest -DatasourceType $DatasourceType.ToString() + if($manifest.isProxyResource -eq $true) { - $restoreRequest.RestoreTargetInfo.DatasourceInfo = GetDatasourceInfo -ResourceId $TargetResourceId -ResourceLocation $RestoreLocation -DatasourceType $DatasourceType - $manifest = LoadManifest -DatasourceType $DatasourceType.ToString() - if($manifest.isProxyResource -eq $true) - { - $restoreRequest.RestoreTargetInfo.DatasourceSetInfo = GetDatasourceSetInfo -DatasourceInfo $restoreRequest.RestoreTargetInfo.DatasourceInfo - } + $restoreRequest.RestoreTargetInfo.DatasourceSetInfo = GetDatasourceSetInfo -DatasourceInfo $restoreRequest.RestoreTargetInfo.DatasourceInfo } - } + } return $restoreRequest } -} +} \ No newline at end of file diff --git a/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 b/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 index bbbbb78e373c..085c915cdbb9 100644 --- a/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 @@ -30,7 +30,7 @@ ${Location}, [Parameter(Mandatory, HelpMessage='Storage Settings of the vault. Use New-AzDataProtectionBackupVaultStorageSetting Cmdlet to Create.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[]] ${StorageSetting}, [Parameter(HelpMessage='Resource tags.')] diff --git a/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 b/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 index e29e760ef9f8..7ca38031dab6 100644 --- a/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 +++ b/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 @@ -15,7 +15,7 @@ function New-AzDataProtectionBackupVaultStorageSettingObject{ ) process { - $storageSetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.StorageSetting]::new() + $storageSetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.StorageSetting]::new() $storageSetting.Type = $Type $storageSetting.DataStoreType = $DataStoreType diff --git a/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 b/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 index 203d11033bb6..730d13ac41e8 100644 --- a/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 +++ b/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 @@ -1,14 +1,14 @@  function Edit-AzDataProtectionPolicyRetentionRuleClientObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Adds or removes Retention Rule to existing Policy')] param( [Parameter(ParameterSetName='AddRetention',Mandatory, HelpMessage='Backup Policy Object')] [Parameter(ParameterSetName='RemoveRetention',Mandatory, HelpMessage='Backup Policy Object')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy] ${Policy}, [Parameter(ParameterSetName='AddRetention',Mandatory, HelpMessage='Retention Rule Name')] @@ -25,7 +25,7 @@ function Edit-AzDataProtectionPolicyRetentionRuleClientObject { ${RemoveRule}, [Parameter(ParameterSetName='AddRetention',Mandatory, HelpMessage='Life cycles associated with the retention rule.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle[]] ${LifeCycles} ) @@ -64,7 +64,7 @@ function Edit-AzDataProtectionPolicyRetentionRuleClientObject { throw "Selected Retention Rule " + $Name + " is not applicable for Datasource Type " + $clientDatasourceType } - $newRetentionRule = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureRetentionRule]::new() + $newRetentionRule = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureRetentionRule]::new() $newRetentionRule.ObjectType = "AzureRetentionRule" $newRetentionRule.IsDefault = $IsDefault $newRetentionRule.Name = $Name diff --git a/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTagClientObject.ps1 b/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTagClientObject.ps1 index 022fe99dd99f..2450884c95f8 100644 --- a/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTagClientObject.ps1 +++ b/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTagClientObject.ps1 @@ -1,12 +1,12 @@ function Edit-AzDataProtectionPolicyTagClientObject{ - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Adds or removes schedule tag in an existing backup policy.')] param( [Parameter(ParameterSetName='updateTag', Mandatory, HelpMessage='Backup Policy Object.')] [Parameter(ParameterSetName='RemoveTag', Mandatory, HelpMessage='Backup Policy Object.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy] ${Policy}, [Parameter(ParameterSetName='updateTag', Mandatory, HelpMessage='Name of the Schedule tag.')] @@ -19,7 +19,7 @@ ${RemoveRule}, [Parameter(ParameterSetName='updateTag', Mandatory, HelpMessage='Criterias to be associated with the schedule tag.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria[]] ${Criteria} ) @@ -83,7 +83,7 @@ if($tagIndex -eq -1) { - $tagCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TaggingCriteria]::new() + $tagCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TaggingCriteria]::new() $tagCriteria.TaggingPriority = GetTaggingPriority -Name $Name $tagCriteria.Criterion = $Criteria $tagCriteria.TagInfoTagName = $Name diff --git a/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 b/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 index 69171c2954ab..0efc8651fc71 100644 --- a/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 +++ b/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 @@ -1,11 +1,11 @@ function Edit-AzDataProtectionPolicyTriggerClientObject{ - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates Backup schedule of an existing backup policy.')] param ( [Parameter(Mandatory, HelpMessage='Backup Policy object.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy] ${Policy}, [Parameter(Mandatory, HelpMessage='Schedule to be associated to backup policy.')] diff --git a/src/DataProtection/custom/Cmdlets/Policy/Get-AzDataProtectionPolicyTemplate.ps1 b/src/DataProtection/custom/Cmdlets/Policy/Get-AzDataProtectionPolicyTemplate.ps1 index 0b91eadaee6b..cc03a13ca3d2 100644 --- a/src/DataProtection/custom/Cmdlets/Policy/Get-AzDataProtectionPolicyTemplate.ps1 +++ b/src/DataProtection/custom/Cmdlets/Policy/Get-AzDataProtectionPolicyTemplate.ps1 @@ -1,7 +1,7 @@  function Get-AzDataProtectionPolicyTemplate { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Gets default policy template for a selected datasource type.')] @@ -16,7 +16,7 @@ function Get-AzDataProtectionPolicyTemplate { $manifestPolicyObject = $manifest.policySettings.defaultPolicy $jsonPolicyString = $manifestPolicyObject | ConvertTo-Json -Depth 100 - $defaultPolicy = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupPolicy]::FromJsonString($jsonPolicyString) + $defaultPolicy = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupPolicy]::FromJsonString($jsonPolicyString) return $defaultPolicy } diff --git a/src/DataProtection/custom/Cmdlets/Policy/New-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/custom/Cmdlets/Policy/New-AzDataProtectionBackupPolicy.ps1 index 34f09fd17a66..7b2b0259bba4 100644 --- a/src/DataProtection/custom/Cmdlets/Policy/New-AzDataProtectionBackupPolicy.ps1 +++ b/src/DataProtection/custom/Cmdlets/Policy/New-AzDataProtectionBackupPolicy.ps1 @@ -1,7 +1,7 @@ function New-AzDataProtectionBackupPolicy { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource')] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Creates a new backup policy in a given backup vault')] @@ -23,7 +23,7 @@ ${Name}, [Parameter(Mandatory, HelpMessage='Policy Request Object')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy] ${Policy}, [Parameter()] @@ -114,7 +114,7 @@ $index += 1 } - $policyObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyResource]::new() + $policyObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyResource]::new() $policyObject.Property = $Policy $null = $PSBoundParameters.Remove("Policy") diff --git a/src/DataProtection/custom/Cmdlets/Policy/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 b/src/DataProtection/custom/Cmdlets/Policy/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 index 6b69cbc4327f..a6a323aab4e4 100644 --- a/src/DataProtection/custom/Cmdlets/Policy/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 +++ b/src/DataProtection/custom/Cmdlets/Policy/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 @@ -1,5 +1,5 @@ function New-AzDataProtectionPolicyTagCriteriaClientObject{ - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Creates a new criteria object')] @@ -32,7 +32,7 @@ ) process { - $criteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ScheduleBasedBackupCriteria]::new() + $criteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ScheduleBasedBackupCriteria]::new() $criteria.ObjectType = "ScheduleBasedBackupCriteria" if($AbsoluteCriteria -ne $null){ $criteria.AbsoluteCriterion = $AbsoluteCriteria @@ -61,7 +61,7 @@ { throw "Day of month should be between 1 and 28." } - $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Day]::new() + $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Day]::new() $day.Date = $dayOfMonthNumber $day.IsLast = $false $criteria.DaysOfMonth += $day @@ -72,7 +72,7 @@ { thow "Day of month should either be between 1 and 28 or it should be last" } - $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Day]::new() + $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Day]::new() $day.IsLast = $true $criteria.DaysOfMonth += $day } diff --git a/src/DataProtection/custom/Cmdlets/Policy/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 b/src/DataProtection/custom/Cmdlets/Policy/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 index 839ab4546579..79fd95bef043 100644 --- a/src/DataProtection/custom/Cmdlets/Policy/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 +++ b/src/DataProtection/custom/Cmdlets/Policy/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 @@ -1,5 +1,5 @@ function New-AzDataProtectionRetentionLifeCycleClientObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Creates new Lifecycle object')] @@ -26,7 +26,7 @@ ) process { - $lifeCycle = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SourceLifeCycle]::new() + $lifeCycle = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SourceLifeCycle]::new() $lifeCycle.SourceDataStoreObjectType = "DataStoreInfoBase" $lifeCycle.SourceDataStoreType = $SourceDataStore $lifeCycle.DeleteAfterObjectType = "AbsoluteDeleteOption" @@ -34,7 +34,7 @@ if(($TargetDataStore -ne $null) -and ($CopyOption -ne $null)) { - $targetCopySetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TargetCopySetting]::new() + $targetCopySetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TargetCopySetting]::new() $targetCopySetting.DataStoreObjectType = "DataStoreInfoBase" $targetCopySetting.DataStoreType = $TargetDataStore $targetCopySetting.CopyAfterObjectType = $CopyOption diff --git a/src/DataProtection/custom/Enums/Enums.cs b/src/DataProtection/custom/Enums/Enums.cs index adf2af1848ca..476344bc9112 100644 --- a/src/DataProtection/custom/Enums/Enums.cs +++ b/src/DataProtection/custom/Enums/Enums.cs @@ -5,7 +5,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support public enum DatasourceTypes { - AzureDisk = 0 + AzureDisk = 0, + AzureBlob } public enum StorageSettingType @@ -117,7 +118,8 @@ public enum RestoreMode public enum RestoreTargetType { - AlternateLocation = 0 + AlternateLocation = 0, + OriginalLocation } public enum ProtectionStatus diff --git a/src/DataProtection/custom/Helpers/CommonHelpers.ps1 b/src/DataProtection/custom/Helpers/CommonHelpers.ps1 index d4b98f54cf62..a73f1acbcf57 100644 --- a/src/DataProtection/custom/Helpers/CommonHelpers.ps1 +++ b/src/DataProtection/custom/Helpers/CommonHelpers.ps1 @@ -5,13 +5,13 @@ function GetDatasourceSetInfo param( [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource] $DatasourceInfo ) process { - $DataSourceSetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceSet]::new() + $DataSourceSetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSet]::new() $DataSourceSetInfo.DatasourceType = $DatasourceInfo.Type $DataSourceSetInfo.ObjectType = "DatasourceSet" $splitResourceId = $DatasourceInfo.ResourceId.Split("/") @@ -49,7 +49,7 @@ function GetDatasourceInfo process { $manifest = LoadManifest -DatasourceType $DatasourceType.ToString() - $DataSourceInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Datasource]::new() + $DataSourceInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Datasource]::new() $DataSourceInfo.ObjectType = "Datasource" $DataSourceInfo.ResourceId = $ResourceId $DataSourceInfo.ResourceLocation = $ResourceLocation diff --git a/src/DataProtection/custom/Helpers/RestoreHelpers.ps1 b/src/DataProtection/custom/Helpers/RestoreHelpers.ps1 index 9274e55695f5..d5d79d843b4b 100644 --- a/src/DataProtection/custom/Helpers/RestoreHelpers.ps1 +++ b/src/DataProtection/custom/Helpers/RestoreHelpers.ps1 @@ -13,6 +13,9 @@ function GetRestoreType { if($type -eq "RecoveryPointBased"){ return "AzureBackupRecoveryPointBasedRestoreRequest" } + elseif($type -eq "PointInTimeBased"){ + return "AzureBackupRecoveryTimeBasedRestoreRequest" + } } } @@ -32,24 +35,39 @@ function ValidateRestoreOptions { [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [System.String] - $RestoreTargetType + $RestoreTargetType, + + [Parameter(Mandatory=$true)] + [ValidateNotNullOrEmpty()] + [System.Boolean] + $ItemLevelRecovery ) process { + Write-Debug -Message $DatasourceType + Write-Debug -Message $RestoreMode + Write-Debug -Message $RestoreTargetType + Write-Debug -Message $ItemLevelRecovery + $manifest = LoadManifest -DatasourceType $DatasourceType if($manifest.allowedRestoreModes.Contains($RestoreMode) -eq $false) { $allowedValues = [System.String]::Join(', ', $manifest.allowedRestoreModes) - $errormsg = "Specified Restore Mode is not supported for DatasourceType " + $DatasourceType + $errormsg = "Specified RecoveryPoint type is not supported for DatasourceType " + $DatasourceType throw $errormsg } - + if($manifest.allowedRestoreTargetTypes.Contains($RestoreTargetType) -eq $false) { $allowedValues = [System.String]::Join(', ', $manifest.allowedRestoreTargetTypes) - $errormsg = "Specified Restore Target Type is not supported for DatasourceType " + $DatasourceType + ". Allowed Values are " + $allowedValues + $errormsg = "Specified RestoreType is not supported for DatasourceType " + $DatasourceType + ". Allowed Values are " + $allowedValues throw $errormsg } + + if(!($manifest.itemLevelRecoveyEnabled) -and $ItemLevelRecovery){ + $errormsg = "Specified DatasourceType " + $DatasourceType + " doesn't support Item Level Recovery" + throw $errormsg + } } } \ No newline at end of file diff --git a/src/DataProtection/custom/Models/BackupInstanceResource.cs b/src/DataProtection/custom/Models/BackupInstanceResource.cs index dade84cde490..5ea9e804c43c 100644 --- a/src/DataProtection/custom/Models/BackupInstanceResource.cs +++ b/src/DataProtection/custom/Models/BackupInstanceResource.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Text; -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { public partial class BackupInstanceResource { diff --git a/src/DataProtection/custom/manifests/AzureBlob.json b/src/DataProtection/custom/manifests/AzureBlob.json index ee99cd2fa029..1f00ff311edd 100644 --- a/src/DataProtection/custom/manifests/AzureBlob.json +++ b/src/DataProtection/custom/manifests/AzureBlob.json @@ -1,8 +1,43 @@ { - "allowedRestoreModes": [ "PointInTimeBased" ], - "allowedRestoreTargetTypes": [ "AlternateLocation" ], - "datasourceType": "Microsoft.Storage/storageAccounts/blobServices", "isProxyResource": false, - "parentResourceType": "", - "resourceType": "" + "resourceType": "Microsoft.Storage/storageAccounts", + "parentResourceType": "Microsoft.Storage/storageAccounts", + "datasourceType": "Microsoft.Storage/storageAccounts/blobServices", + "allowedRestoreModes": [ "PointInTimeBased" ], + "allowedRestoreTargetTypes": [ "OriginalLocation" ], + "itemLevelRecoveyEnabled": true, + "policySettings": { + "supportedRetentionTags": [], + "supportedDatastoreTypes": [ "OperationalStore" ], + "disableAddRetentionRule": true, + "disableCustomRetentionTag": true, + "backupScheduleSupported": false, + "supportedBackupFrequency": [], + "defaultPolicy": { + "policyRules": [ + { + "lifecycles": [ + { + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P30D" + }, + "sourceDataStore": { + "dataStoreType": "OperationalStore", + "objectType": "DataStoreInfoBase" + } + } + ], + "isDefault": true, + "name": "Default", + "objectType": "AzureRetentionRule" + } + ], + "name": "BlobPolicy1", + "datasourceTypes": [ + "Microsoft.Storage/storageAccounts/blobServices" + ], + "objectType": "BackupPolicy" + } + } } \ No newline at end of file diff --git a/src/DataProtection/custom/manifests/AzureDisk.json b/src/DataProtection/custom/manifests/AzureDisk.json index 9143f5ba5936..9e31eeaae4d2 100644 --- a/src/DataProtection/custom/manifests/AzureDisk.json +++ b/src/DataProtection/custom/manifests/AzureDisk.json @@ -5,6 +5,7 @@ "datasourceType": "Microsoft.Compute/disks", "allowedRestoreModes": [ "RecoveryPointBased" ], "allowedRestoreTargetTypes": [ "AlternateLocation" ], + "itemLevelRecoveyEnabled": false, "policySettings": { "supportedRetentionTags": [ "Daily", "Weekly" ], "supportedDatastoreTypes": [ "OperationalStore" ], diff --git a/src/DataProtection/examples/Find-AzDataProtectionRestorableTimeRange.md b/src/DataProtection/examples/Find-AzDataProtectionRestorableTimeRange.md new file mode 100644 index 000000000000..bd502210fd29 --- /dev/null +++ b/src/DataProtection/examples/Find-AzDataProtectionRestorableTimeRange.md @@ -0,0 +1,15 @@ +### Example 1: Fetch valid restorable time ranges for a BackupInstance +```powershell +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instances = Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "subscriptionId" -DatasourceType AzureBlob -ResourceGroup "rgName" -Vault "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instances[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $pointInTimeRange.RestorableTimeRange | fl + +EndTime : 2021-04-24T08:57:36.4149422Z +ObjectType : RestorableTimeRange +StartTime : 2021-03-25T14:27:31.0000000Z +``` + +Set $startTime and $endTime. Fetch the backup instance. Fetch valid time ranges for Backup Instance $instance[0]. Dispaly RestorableTimeRange, note that this can be multiple dicrete ranges. + diff --git a/src/DataProtection/examples/Initialize-AzDataProtectionRestoreRequest.md b/src/DataProtection/examples/Initialize-AzDataProtectionRestoreRequest.md index 2b2301fd38f2..dc6bbc3a49db 100644 --- a/src/DataProtection/examples/Initialize-AzDataProtectionRestoreRequest.md +++ b/src/DataProtection/examples/Initialize-AzDataProtectionRestoreRequest.md @@ -13,3 +13,66 @@ AzureBackupRecoveryPointBasedRestoreRequest RestoreTargetInfo FailIfEx This command initialized a restore request object which can be used to trigger restore. +### Example 2: Get restore request object for Protected Azure Blob Backup instance +```powershell +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instance[0] -PointInTime (Get-Date -Date $pointInTimeRange.RestorableTimeRange.EndTime) +PS C:\> $restoreRequest + +ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime +---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- +AzureBackupRecoveryTimeBasedRestoreRequest restoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-24T13:32:41.7018481Z + +``` + +This command initialized a restore request object which can be used to trigger restore for Blobs. + +### Example 3: Get restore request object for Item Level recovery for containers under protected AzureBlob Backup instance + +```powershell +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -ContainersList "containerName1","containerName2" +PS C:\> $restoreRequest + +ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime +---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- +AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z + +``` + +This command initialized a restore request object which can be used to trigger Item Level Recovery at container level for Blobs. + +### Example 4: Get restore request object for Item Level recovery for containers/prefixMatch under protected AzureBlob Backup instance + +```powershell +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -FromPrefixPattern "container1/aaa","container1/ccc", "container2/aab", "container3" -ToPrefixPattern "container1/bbb","container1/ddd", "container2/abc", "container3-0" +PS C:\> $restoreRequest + +ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime +---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- +AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z + +``` + +This command initialized a restore request object which can be used to trigger Item Level Recovery at blobs level based on name prefixes under Blob containers. + +The above restoreRequest restore the following containers/blobs: + +FromPrefix ToPrefix +"container1/aaa" "container1/bbb" (restores all blobs matched in this Prefix range) +"container1/ccc" "container1/ddd" +"container2/aab" "container2/abc" +"container3" "container3-0" (restores whole container3) + +Note: The ranges shouldn't overlap with each other. Reference: https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata + diff --git a/src/DataProtection/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 b/src/DataProtection/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 index be1cdb280959..421ae157bc64 100644 --- a/src/DataProtection/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 +++ b/src/DataProtection/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 @@ -26,7 +26,7 @@ PS C:\> Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/backup-azdataprotectionbackupinstanceadhoc #> function Backup-AzDataProtectionBackupInstanceAdhoc { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='BackupExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='BackupExpanded', Mandatory)] diff --git a/src/DataProtection/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 b/src/DataProtection/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 index 647ac1324bd2..0daed60665fc 100644 --- a/src/DataProtection/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 +++ b/src/DataProtection/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 @@ -34,7 +34,7 @@ DatasourceType ObjectType {Microsoft.Compute/disks} BackupPolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -74,12 +74,12 @@ POLICY : Backup Policy Object https://docs.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicyretentionruleclientobject #> function Edit-AzDataProtectionPolicyRetentionRuleClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy])] [CmdletBinding(DefaultParameterSetName='RemoveRetention', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy] # Backup Policy Object # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -104,7 +104,7 @@ param( [Parameter(ParameterSetName='AddRetention', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle[]] # Life cycles associated with the retention rule. # To construct, see NOTES section for LIFECYCLES properties and create a hash table. ${LifeCycles} diff --git a/src/DataProtection/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1 b/src/DataProtection/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1 index f66a7dbcf82d..ab2147793f0b 100644 --- a/src/DataProtection/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1 +++ b/src/DataProtection/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1 @@ -33,7 +33,7 @@ DatasourceType ObjectType {Microsoft.Compute/disks} BackupPolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -74,12 +74,12 @@ POLICY : Backup Policy Object. https://docs.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytagclientobject #> function Edit-AzDataProtectionPolicyTagClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy])] [CmdletBinding(DefaultParameterSetName='RemoveTag', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy] # Backup Policy Object. # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -98,7 +98,7 @@ param( [Parameter(ParameterSetName='updateTag', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria[]] # Criterias to be associated with the schedule tag. # To construct, see NOTES section for CRITERIA properties and create a hash table. ${Criteria} diff --git a/src/DataProtection/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 b/src/DataProtection/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 index fb5e19aa1d5a..a30cbd7f093d 100644 --- a/src/DataProtection/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 +++ b/src/DataProtection/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 @@ -27,7 +27,7 @@ DatasourceType ObjectType {Microsoft.Compute/disks} BackupPolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -57,12 +57,12 @@ POLICY : Backup Policy object. https://docs.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytriggerclientobject #> function Edit-AzDataProtectionPolicyTriggerClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy] # Backup Policy object. # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, diff --git a/src/DataProtection/exports/Find-AzDataProtectionRestorableTimeRange.ps1 b/src/DataProtection/exports/Find-AzDataProtectionRestorableTimeRange.ps1 new file mode 100644 index 000000000000..16e004a19a2d --- /dev/null +++ b/src/DataProtection/exports/Find-AzDataProtectionRestorableTimeRange.ps1 @@ -0,0 +1,170 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis + +.Description + +.Example +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instances = Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "subscriptionId" -DatasourceType AzureBlob -ResourceGroup "rgName" -Vault "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instances[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $pointInTimeRange.RestorableTimeRange | fl + +EndTime : 2021-04-24T08:57:36.4149422Z +ObjectType : RestorableTimeRange +StartTime : 2021-03-25T14:27:31.0000000Z + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/find-azdataprotectionrestorabletimerange +#> +function Find-AzDataProtectionRestorableTimeRange { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource])] +[CmdletBinding(DefaultParameterSetName='PostExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # . + ${BackupInstanceName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the resource group where the backup vault is present. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the backup vault. + ${VaultName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription Id. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # End time for the List Restore Ranges request + ${EndTime}, + + [Parameter(Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType] + # Gets or sets the type of the source data store. + ${SourceDataStoreType}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Start time for the List Restore Ranges request + ${StartTime}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + PostExpanded = 'Az.DataProtection.private\Find-AzDataProtectionRestorableTimeRange_PostExpanded'; + } + if (('PostExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/DataProtection/exports/Get-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/exports/Get-AzDataProtectionBackupInstance.ps1 index a4affd60a2e3..fb390773679b 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionBackupInstance.ps1 @@ -36,7 +36,7 @@ sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtect .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource .Notes COMPLEX PARAMETER PROPERTIES @@ -58,7 +58,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupinstance #> function Get-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/DataProtection/exports/Get-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/exports/Get-AzDataProtectionBackupPolicy.ps1 index e2aa98a17795..f6ab5df80215 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionBackupPolicy.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionBackupPolicy.ps1 @@ -35,7 +35,7 @@ MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -57,7 +57,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackuppolicy #> function Get-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/DataProtection/exports/Get-AzDataProtectionBackupVault.ps1 b/src/DataProtection/exports/Get-AzDataProtectionBackupVault.ps1 index 4a10d9f35f29..d468ffa6f801 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionBackupVault.ps1 @@ -44,7 +44,7 @@ ETag IdentityPrincipalId IdentityTenantId I .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource .Outputs System.Management.Automation.PSObject .Notes @@ -68,7 +68,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvault #> function Get-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource], [PSObject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource], [PSObject])] [CmdletBinding(DefaultParameterSetName='list', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/DataProtection/exports/Get-AzDataProtectionJob.ps1 b/src/DataProtection/exports/Get-AzDataProtectionJob.ps1 index 7b5a984d7756..2c0c983c9487 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionJob.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionJob.ps1 @@ -39,7 +39,7 @@ Name Type .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource .Notes COMPLEX PARAMETER PROPERTIES @@ -61,7 +61,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionjob #> function Get-AzDataProtectionJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/DataProtection/exports/Get-AzDataProtectionPolicyTemplate.ps1 b/src/DataProtection/exports/Get-AzDataProtectionPolicyTemplate.ps1 index e6bb9bee4d51..bde8b1fc89f3 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionPolicyTemplate.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionPolicyTemplate.ps1 @@ -26,12 +26,12 @@ DatasourceType ObjectType {Microsoft.Compute/disks} BackupPolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy .Link https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionpolicytemplate #> function Get-AzDataProtectionPolicyTemplate { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DataProtection/exports/Get-AzDataProtectionRecoveryPoint.ps1 b/src/DataProtection/exports/Get-AzDataProtectionRecoveryPoint.ps1 index 70cb4499616e..e913baed5c88 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionRecoveryPoint.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionRecoveryPoint.ps1 @@ -41,7 +41,7 @@ Name Type .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource .Outputs System.Management.Automation.PSObject .Notes @@ -65,7 +65,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint #> function Get-AzDataProtectionRecoveryPoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource], [PSObject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource], [PSObject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/DataProtection/exports/Initialize-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/exports/Initialize-AzDataProtectionBackupInstance.ps1 index 9e105b1a2ad7..8f103b231ee9 100644 --- a/src/DataProtection/exports/Initialize-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/exports/Initialize-AzDataProtectionBackupInstance.ps1 @@ -30,12 +30,12 @@ Name Type BackupInstanceName sarath-disk3-sarath-disk3-af697a80-e2bc-49f1-af6c-22f6c4d68405 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource .Link https://docs.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionbackupinstance #> function Initialize-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DataProtection/exports/Initialize-AzDataProtectionRestoreRequest.ps1 b/src/DataProtection/exports/Initialize-AzDataProtectionRestoreRequest.ps1 index 13fa1364848f..70f05546306e 100644 --- a/src/DataProtection/exports/Initialize-AzDataProtectionRestoreRequest.ps1 +++ b/src/DataProtection/exports/Initialize-AzDataProtectionRestoreRequest.ps1 @@ -28,15 +28,82 @@ ObjectType RestoreTargetInfoObjectType RestoreT d ---------- --------------------------- ------------------------------- -------------------------------- ------------------- -------------- AzureBackupRecoveryPointBasedRestoreRequest RestoreTargetInfo FailIfExists westus OperationalStore 892e5c5014dc4a96807d22924f5745c9 +.Example +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instance[0] -PointInTime (Get-Date -Date $pointInTimeRange.RestorableTimeRange.EndTime) +PS C:\> $restoreRequest + +ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime +---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- +AzureBackupRecoveryTimeBasedRestoreRequest restoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-24T13:32:41.7018481Z + +.Example +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -ContainersList "containerName1","containerName2" +PS C:\> $restoreRequest + +ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime +---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- +AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z + +.Example +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -FromPrefixPattern "container1/aaa","container1/ccc", "container2/aab", "container3" -ToPrefixPattern "container1/bbb","container1/ddd", "container2/abc", "container3-0" +PS C:\> $restoreRequest + +ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime +---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- +AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z + .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKUPINSTANCE : Backup Instance object to trigger original localtion restore. + [Property ]: BackupInstanceResource properties + DataSourceInfo : Gets or sets the data source information. + ResourceId : Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault. + [ObjectType ]: Type of Datasource object, used to initialize the right inherited type + [ResourceLocation ]: Location of datasource. + [ResourceName ]: Unique identifier of the resource in the context of parent. + [ResourceType ]: Resource Type of Datasource. + [ResourceUri ]: Uri of the resource. + [Type ]: DatasourceType of the resource. + FriendlyName : Gets or sets the Backup Instance friendly name. + ObjectType : + PolicyInfo : Gets or sets the policy information. + PolicyId : + [PolicyParameter ]: Policy parameters for the backup instance + [DataStoreParametersList ]: Gets or sets the DataStore Parameters + DataStoreType : type of datastore; Operational/Vault/Archive + ObjectType : Type of the specific object - used for deserializing + [DataSourceSetInfo ]: Gets or sets the data source set information. + ResourceId : Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault. + [DatasourceType ]: DatasourceType of the resource. + [ObjectType ]: Type of Datasource object, used to initialize the right inherited type + [ResourceLocation ]: Location of datasource. + [ResourceName ]: Unique identifier of the resource in the context of parent. + [ResourceType ]: Resource Type of Datasource. + [ResourceUri ]: Uri of the resource. .Link https://docs.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionrestorerequest #> function Initialize-AzDataProtectionRestoreRequest { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest])] -[CmdletBinding(DefaultParameterSetName='RecoveryPointBased', PositionalBinding=$false)] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest])] +[CmdletBinding(DefaultParameterSetName='AlternateLocationFullRecovery', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] @@ -62,7 +129,21 @@ param( # Restore Target Type ${RestoreType}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='OriginalLocationILR', Mandatory)] + [Parameter(ParameterSetName='OriginalLocationFullRecovery', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResource] + # Backup Instance object to trigger original localtion restore. + # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. + ${BackupInstance}, + + [Parameter(ParameterSetName='OriginalLocationILR', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Switch Parameter to enable item level recovery. + ${ItemLevelRecovery}, + + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] # Id of the recovery point to be restored. @@ -70,6 +151,30 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.DateTime] + # Point In Time for restore. + ${PointInTime}, + + [Parameter(ParameterSetName='OriginalLocationILR')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String[]] + # Container names for Item Level Recovery. + ${ContainersList}, + + [Parameter(ParameterSetName='OriginalLocationILR')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String[]] + # Minimum matching value for Item Level Recovery. + ${FromPrefixPattern}, + + [Parameter(ParameterSetName='OriginalLocationILR')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String[]] + # Maximum matching value for Item Level Recovery. + ${ToPrefixPattern}, + + [Parameter(ParameterSetName='AlternateLocationFullRecovery', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] # Target resource Id to which backup data will be restored. ${TargetResourceId} @@ -83,7 +188,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - RecoveryPointBased = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest'; + OriginalLocationILR = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest'; + AlternateLocationFullRecovery = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest'; + OriginalLocationFullRecovery = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} diff --git a/src/DataProtection/exports/New-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/exports/New-AzDataProtectionBackupInstance.ps1 index 5f4a43ed9936..662093e91029 100644 --- a/src/DataProtection/exports/New-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionBackupInstance.ps1 @@ -82,7 +82,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource] # Backup instance request object which will be used to configure backup # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ${BackupInstance}, diff --git a/src/DataProtection/exports/New-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/exports/New-AzDataProtectionBackupPolicy.ps1 index 405b20ae5881..87e64479e706 100644 --- a/src/DataProtection/exports/New-AzDataProtectionBackupPolicy.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionBackupPolicy.ps1 @@ -27,7 +27,7 @@ Name Type MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -57,7 +57,7 @@ POLICY : Policy Request Object https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy #> function New-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -80,7 +80,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy] # Policy Request Object # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, diff --git a/src/DataProtection/exports/New-AzDataProtectionBackupVault.ps1 b/src/DataProtection/exports/New-AzDataProtectionBackupVault.ps1 index df9ac32d68bd..5cb4885d9f00 100644 --- a/src/DataProtection/exports/New-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionBackupVault.ps1 @@ -64,7 +64,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[]] # Storage Settings of the vault. # Use New-AzDataProtectionBackupVaultStorageSetting Cmdlet to Create. # To construct, see NOTES section for STORAGESETTING properties and create a hash table. diff --git a/src/DataProtection/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 b/src/DataProtection/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 index e934dd085726..3d1ddc339f45 100644 --- a/src/DataProtection/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 @@ -32,12 +32,12 @@ ObjectType AbsoluteCriterion DaysOfTheWeek MonthsOfYear Sche ScheduleBasedBackupCriteria {Sunday, Monday} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria .Link https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionpolicytagcriteriaclientobject #> function New-AzDataProtectionPolicyTagCriteriaClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria])] [CmdletBinding(DefaultParameterSetName='ScheduleCriteria', PositionalBinding=$false)] param( [Parameter(ParameterSetName='AbsoluteCriteria', Mandatory)] diff --git a/src/DataProtection/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 b/src/DataProtection/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 index 94300355cd62..44257c7c2471 100644 --- a/src/DataProtection/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 @@ -36,12 +36,12 @@ SourceDataStoreType : OperationalStore TargetDataStoreCopySetting : .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle .Link https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionretentionlifecycleclientobject #> function New-AzDataProtectionRetentionLifeCycleClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DataProtection/exports/ProxyCmdletDefinitions.ps1 b/src/DataProtection/exports/ProxyCmdletDefinitions.ps1 index 8cd912aa992d..2e3159657af4 100644 --- a/src/DataProtection/exports/ProxyCmdletDefinitions.ps1 +++ b/src/DataProtection/exports/ProxyCmdletDefinitions.ps1 @@ -26,7 +26,7 @@ PS C:\> Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/backup-azdataprotectionbackupinstanceadhoc #> function Backup-AzDataProtectionBackupInstanceAdhoc { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='BackupExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='BackupExpanded', Mandatory)] @@ -209,6 +209,176 @@ end { # limitations under the License. # ---------------------------------------------------------------------------------- +<# +.Synopsis + +.Description + +.Example +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instances = Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "subscriptionId" -DatasourceType AzureBlob -ResourceGroup "rgName" -Vault "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instances[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $pointInTimeRange.RestorableTimeRange | fl + +EndTime : 2021-04-24T08:57:36.4149422Z +ObjectType : RestorableTimeRange +StartTime : 2021-03-25T14:27:31.0000000Z + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/find-azdataprotectionrestorabletimerange +#> +function Find-AzDataProtectionRestorableTimeRange { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource])] +[CmdletBinding(DefaultParameterSetName='PostExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # . + ${BackupInstanceName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the resource group where the backup vault is present. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the backup vault. + ${VaultName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription Id. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # End time for the List Restore Ranges request + ${EndTime}, + + [Parameter(Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType] + # Gets or sets the type of the source data store. + ${SourceDataStoreType}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Start time for the List Restore Ranges request + ${StartTime}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + PostExpanded = 'Az.DataProtection.private\Find-AzDataProtectionRestorableTimeRange_PostExpanded'; + } + if (('PostExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + <# .Synopsis Gets a backup instance with name in a backup vault @@ -232,7 +402,7 @@ sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtect .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource .Notes COMPLEX PARAMETER PROPERTIES @@ -254,7 +424,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupinstance #> function Get-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -418,7 +588,7 @@ MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -440,7 +610,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackuppolicy #> function Get-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -613,7 +783,7 @@ ETag IdentityPrincipalId IdentityTenantId I .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource .Outputs System.Management.Automation.PSObject .Notes @@ -637,7 +807,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvault #> function Get-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource], [PSObject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource], [PSObject])] [CmdletBinding(DefaultParameterSetName='list', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -797,7 +967,7 @@ Name Type .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource .Notes COMPLEX PARAMETER PROPERTIES @@ -819,7 +989,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionjob #> function Get-AzDataProtectionJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -991,7 +1161,7 @@ Name Type .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource .Outputs System.Management.Automation.PSObject .Notes @@ -1015,7 +1185,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint #> function Get-AzDataProtectionRecoveryPoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource], [PSObject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource], [PSObject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1730,9 +1900,9 @@ PS C:\> Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instanc .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -1747,7 +1917,7 @@ PARAMETER : Azure backup restore request https://docs.microsoft.com/powershell/module/az.dataprotection/start-azdataprotectionbackupinstancerestore #> function Start-AzDataProtectionBackupInstanceRestore { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='TriggerExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1777,7 +1947,7 @@ param( [Parameter(ParameterSetName='Trigger', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest] # Azure backup restore request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -1939,7 +2109,7 @@ ETag IdentityPrincipalId IdentityTenantId I .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES @@ -1961,7 +2131,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupvault #> function Update-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='PatchExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='PatchExpanded', Mandatory)] @@ -1998,7 +2168,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -2138,7 +2308,7 @@ DatasourceType ObjectType {Microsoft.Compute/disks} BackupPolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -2178,12 +2348,12 @@ POLICY : Backup Policy Object https://docs.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicyretentionruleclientobject #> function Edit-AzDataProtectionPolicyRetentionRuleClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy])] [CmdletBinding(DefaultParameterSetName='RemoveRetention', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy] # Backup Policy Object # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -2208,7 +2378,7 @@ param( [Parameter(ParameterSetName='AddRetention', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle[]] # Life cycles associated with the retention rule. # To construct, see NOTES section for LIFECYCLES properties and create a hash table. ${LifeCycles} @@ -2285,7 +2455,7 @@ DatasourceType ObjectType {Microsoft.Compute/disks} BackupPolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -2326,12 +2496,12 @@ POLICY : Backup Policy Object. https://docs.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytagclientobject #> function Edit-AzDataProtectionPolicyTagClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy])] [CmdletBinding(DefaultParameterSetName='RemoveTag', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy] # Backup Policy Object. # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -2350,7 +2520,7 @@ param( [Parameter(ParameterSetName='updateTag', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria[]] # Criterias to be associated with the schedule tag. # To construct, see NOTES section for CRITERIA properties and create a hash table. ${Criteria} @@ -2421,7 +2591,7 @@ DatasourceType ObjectType {Microsoft.Compute/disks} BackupPolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -2451,12 +2621,12 @@ POLICY : Backup Policy object. https://docs.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytriggerclientobject #> function Edit-AzDataProtectionPolicyTriggerClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy] # Backup Policy object. # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -2531,12 +2701,12 @@ DatasourceType ObjectType {Microsoft.Compute/disks} BackupPolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy .Link https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionpolicytemplate #> function Get-AzDataProtectionPolicyTemplate { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -2613,12 +2783,12 @@ Name Type BackupInstanceName sarath-disk3-sarath-disk3-af697a80-e2bc-49f1-af6c-22f6c4d68405 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource .Link https://docs.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionbackupinstance #> function Initialize-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -2711,15 +2881,82 @@ ObjectType RestoreTargetInfoObjectType RestoreT d ---------- --------------------------- ------------------------------- -------------------------------- ------------------- -------------- AzureBackupRecoveryPointBasedRestoreRequest RestoreTargetInfo FailIfExists westus OperationalStore 892e5c5014dc4a96807d22924f5745c9 +.Example +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instance[0] -PointInTime (Get-Date -Date $pointInTimeRange.RestorableTimeRange.EndTime) +PS C:\> $restoreRequest + +ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime +---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- +AzureBackupRecoveryTimeBasedRestoreRequest restoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-24T13:32:41.7018481Z + +.Example +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -ContainersList "containerName1","containerName2" +PS C:\> $restoreRequest + +ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime +---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- +AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z + +.Example +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -FromPrefixPattern "container1/aaa","container1/ccc", "container2/aab", "container3" -ToPrefixPattern "container1/bbb","container1/ddd", "container2/abc", "container3-0" +PS C:\> $restoreRequest + +ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime +---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- +AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z + .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +BACKUPINSTANCE : Backup Instance object to trigger original localtion restore. + [Property ]: BackupInstanceResource properties + DataSourceInfo : Gets or sets the data source information. + ResourceId : Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault. + [ObjectType ]: Type of Datasource object, used to initialize the right inherited type + [ResourceLocation ]: Location of datasource. + [ResourceName ]: Unique identifier of the resource in the context of parent. + [ResourceType ]: Resource Type of Datasource. + [ResourceUri ]: Uri of the resource. + [Type ]: DatasourceType of the resource. + FriendlyName : Gets or sets the Backup Instance friendly name. + ObjectType : + PolicyInfo : Gets or sets the policy information. + PolicyId : + [PolicyParameter ]: Policy parameters for the backup instance + [DataStoreParametersList ]: Gets or sets the DataStore Parameters + DataStoreType : type of datastore; Operational/Vault/Archive + ObjectType : Type of the specific object - used for deserializing + [DataSourceSetInfo ]: Gets or sets the data source set information. + ResourceId : Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault. + [DatasourceType ]: DatasourceType of the resource. + [ObjectType ]: Type of Datasource object, used to initialize the right inherited type + [ResourceLocation ]: Location of datasource. + [ResourceName ]: Unique identifier of the resource in the context of parent. + [ResourceType ]: Resource Type of Datasource. + [ResourceUri ]: Uri of the resource. .Link https://docs.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionrestorerequest #> function Initialize-AzDataProtectionRestoreRequest { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest])] -[CmdletBinding(DefaultParameterSetName='RecoveryPointBased', PositionalBinding=$false)] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest])] +[CmdletBinding(DefaultParameterSetName='AlternateLocationFullRecovery', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] @@ -2745,7 +2982,21 @@ param( # Restore Target Type ${RestoreType}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='OriginalLocationILR', Mandatory)] + [Parameter(ParameterSetName='OriginalLocationFullRecovery', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResource] + # Backup Instance object to trigger original localtion restore. + # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. + ${BackupInstance}, + + [Parameter(ParameterSetName='OriginalLocationILR', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Switch Parameter to enable item level recovery. + ${ItemLevelRecovery}, + + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] # Id of the recovery point to be restored. @@ -2753,6 +3004,30 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.DateTime] + # Point In Time for restore. + ${PointInTime}, + + [Parameter(ParameterSetName='OriginalLocationILR')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String[]] + # Container names for Item Level Recovery. + ${ContainersList}, + + [Parameter(ParameterSetName='OriginalLocationILR')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String[]] + # Minimum matching value for Item Level Recovery. + ${FromPrefixPattern}, + + [Parameter(ParameterSetName='OriginalLocationILR')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String[]] + # Maximum matching value for Item Level Recovery. + ${ToPrefixPattern}, + + [Parameter(ParameterSetName='AlternateLocationFullRecovery', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] # Target resource Id to which backup data will be restored. ${TargetResourceId} @@ -2766,7 +3041,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - RecoveryPointBased = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest'; + OriginalLocationILR = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest'; + AlternateLocationFullRecovery = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest'; + OriginalLocationFullRecovery = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} @@ -2877,7 +3154,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource] # Backup instance request object which will be used to configure backup # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ${BackupInstance}, @@ -3003,7 +3280,7 @@ Name Type MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -3033,7 +3310,7 @@ POLICY : Policy Request Object https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy #> function New-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -3056,7 +3333,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy] # Policy Request Object # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -3209,7 +3486,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[]] # Storage Settings of the vault. # Use New-AzDataProtectionBackupVaultStorageSetting Cmdlet to Create. # To construct, see NOTES section for STORAGESETTING properties and create a hash table. @@ -3443,12 +3720,12 @@ ObjectType AbsoluteCriterion DaysOfTheWeek MonthsOfYear Sche ScheduleBasedBackupCriteria {Sunday, Monday} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria .Link https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionpolicytagcriteriaclientobject #> function New-AzDataProtectionPolicyTagCriteriaClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria])] [CmdletBinding(DefaultParameterSetName='ScheduleCriteria', PositionalBinding=$false)] param( [Parameter(ParameterSetName='AbsoluteCriteria', Mandatory)] @@ -3660,12 +3937,12 @@ SourceDataStoreType : OperationalStore TargetDataStoreCopySetting : .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle .Link https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionretentionlifecycleclientobject #> function New-AzDataProtectionRetentionLifeCycleClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -4022,12 +4299,12 @@ Name Type sarathdisk2-sarathdisk2-2ba3c708-3648-45e2-809d-9f75e66d404f Microsoft.DataProtection/backupVaults/backupInstances sarathdisk2-sarathdisk2-2ba3c708-3648-45e2-809d-9f75e66 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource .Link https://docs.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupinstanceassociatedpolicy #> function Update-AzDataProtectionBackupInstanceAssociatedPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/DataProtection/exports/Start-AzDataProtectionBackupInstanceRestore.ps1 b/src/DataProtection/exports/Start-AzDataProtectionBackupInstanceRestore.ps1 index 619826fec0ef..1d2ea07bffb9 100644 --- a/src/DataProtection/exports/Start-AzDataProtectionBackupInstanceRestore.ps1 +++ b/src/DataProtection/exports/Start-AzDataProtectionBackupInstanceRestore.ps1 @@ -26,9 +26,9 @@ PS C:\> Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instanc .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -43,7 +43,7 @@ PARAMETER : Azure backup restore request https://docs.microsoft.com/powershell/module/az.dataprotection/start-azdataprotectionbackupinstancerestore #> function Start-AzDataProtectionBackupInstanceRestore { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='TriggerExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -73,7 +73,7 @@ param( [Parameter(ParameterSetName='Trigger', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest] # Azure backup restore request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, diff --git a/src/DataProtection/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 b/src/DataProtection/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 index 7e3a66c869ec..dad5117eb144 100644 --- a/src/DataProtection/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 +++ b/src/DataProtection/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 @@ -29,12 +29,12 @@ Name Type sarathdisk2-sarathdisk2-2ba3c708-3648-45e2-809d-9f75e66d404f Microsoft.DataProtection/backupVaults/backupInstances sarathdisk2-sarathdisk2-2ba3c708-3648-45e2-809d-9f75e66 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource .Link https://docs.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupinstanceassociatedpolicy #> function Update-AzDataProtectionBackupInstanceAssociatedPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/DataProtection/exports/Update-AzDataProtectionBackupVault.ps1 b/src/DataProtection/exports/Update-AzDataProtectionBackupVault.ps1 index 9e7023e4c5b4..ca6db2556f6f 100644 --- a/src/DataProtection/exports/Update-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/exports/Update-AzDataProtectionBackupVault.ps1 @@ -31,7 +31,7 @@ ETag IdentityPrincipalId IdentityTenantId I .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES @@ -53,7 +53,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupvault #> function Update-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='PatchExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='PatchExpanded', Mandatory)] @@ -90,7 +90,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DataProtection/generate-info.json b/src/DataProtection/generate-info.json index e50736c7e333..beddc8c90772 100644 --- a/src/DataProtection/generate-info.json +++ b/src/DataProtection/generate-info.json @@ -1,8 +1,8 @@ { - "swagger_commit": "803ecbd3a302c09e247dc3951f621756aafe973b", + "swagger_commit": "f1d8c4ebb54fdc1301eb2f2a465982cf58b54f69", + "autorest_powershell": "3.0.428", "autorest_modelerfour": "4.15.414", - "autorest_powershell": "3.0.423", - "autorest": "`-- (empty)", "node": "v14.15.5", - "autorest_core": "3.2.1" + "autorest": "`-- (empty)", + "autorest_core": "3.3.2" } diff --git a/src/DataProtection/generated/api/DataProtection.cs b/src/DataProtection/generated/api/DataProtection.cs index 25d46e1582a4..2f7d2d0b6802 100644 --- a/src/DataProtection/generated/api/DataProtection.cs +++ b/src/DataProtection/generated/api/DataProtection.cs @@ -27,9 +27,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -76,9 +76,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesAdhocBackupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesAdhocBackupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -137,7 +137,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -254,13 +254,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -288,7 +288,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -301,6 +301,7 @@ public partial class DataProtection } } + /// Create or update a backup instance in a backup vault /// The name of the backup vault. /// The name of the resource group where the backup vault is present. /// The subscription Id. @@ -314,9 +315,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -351,6 +352,7 @@ public partial class DataProtection } } + /// Create or update a backup instance in a backup vault /// /// Request body for operation /// a delegate that is called when the remote service returns 200 (OK). @@ -361,9 +363,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -421,7 +423,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -537,13 +539,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -571,7 +573,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -598,9 +600,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesDelete(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesDelete(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -642,9 +644,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -699,7 +701,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupInstancesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -828,7 +830,7 @@ public partial class DataProtection default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -879,9 +881,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesGet(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesGet(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -922,9 +924,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesGetViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesGetViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -978,7 +980,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesGet_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupInstancesGet_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -996,13 +998,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1052,9 +1054,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesList(string vaultName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesList(string vaultName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1094,9 +1096,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesListViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesListViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1148,7 +1150,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesList_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupInstancesList_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1166,13 +1168,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1222,9 +1224,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrate(string resourceGroupName, string subscriptionId, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrate(string resourceGroupName, string subscriptionId, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1271,9 +1273,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1332,7 +1334,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1455,7 +1457,7 @@ public partial class DataProtection default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1483,7 +1485,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrate_Validate(string resourceGroupName, string subscriptionId, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrate_Validate(string resourceGroupName, string subscriptionId, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1510,9 +1512,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1559,9 +1561,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesTriggerRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesTriggerRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1620,7 +1622,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1737,13 +1739,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1771,7 +1773,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1797,9 +1799,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesValidateForBackup(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesValidateForBackup(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1844,9 +1846,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesValidateForBackupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesValidateForBackupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1902,7 +1904,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesValidateForBackup_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupInstancesValidateForBackup_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2019,13 +2021,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2052,7 +2054,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesValidateForBackup_Validate(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesValidateForBackup_Validate(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2078,9 +2080,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesValidateRestore(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesValidateRestore(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2127,9 +2129,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesValidateRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesValidateRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2188,7 +2190,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesValidateRestore_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupInstancesValidateRestore_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2305,13 +2307,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2339,7 +2341,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesValidateRestore_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesValidateRestore_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2366,9 +2368,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesCreateOrUpdate(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupPoliciesCreateOrUpdate(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2414,9 +2416,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupPoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2474,7 +2476,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupPoliciesCreateOrUpdate_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupPoliciesCreateOrUpdate_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2492,13 +2494,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2526,7 +2528,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupPoliciesCreateOrUpdate_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupPoliciesCreateOrUpdate_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2553,9 +2555,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesDelete(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupPoliciesDelete(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2597,9 +2599,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupPoliciesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2654,7 +2656,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupPoliciesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupPoliciesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2684,7 +2686,7 @@ public partial class DataProtection default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2735,9 +2737,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesGet(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupPoliciesGet(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2778,9 +2780,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesGetViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupPoliciesGetViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2834,7 +2836,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupPoliciesGet_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupPoliciesGet_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2852,13 +2854,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2908,9 +2910,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesList(string vaultName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupPoliciesList(string vaultName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2950,9 +2952,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesListViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupPoliciesListViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3004,7 +3006,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupPoliciesList_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupPoliciesList_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3022,13 +3024,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3077,9 +3079,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsCheckNameAvailability(string resourceGroupName, string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsCheckNameAvailability(string resourceGroupName, string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3124,9 +3126,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsCheckNameAvailabilityViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsCheckNameAvailabilityViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3182,7 +3184,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsCheckNameAvailability_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupVaultsCheckNameAvailability_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3200,13 +3202,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CheckNameAvailabilityResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CheckNameAvailabilityResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3233,7 +3235,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsCheckNameAvailability_Validate(string resourceGroupName, string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupVaultsCheckNameAvailability_Validate(string resourceGroupName, string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3258,9 +3260,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsCreateOrUpdate(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsCreateOrUpdate(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3304,9 +3306,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3361,7 +3363,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsCreateOrUpdate_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupVaultsCreateOrUpdate_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3477,13 +3479,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3510,7 +3512,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsCreateOrUpdate_Validate(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupVaultsCreateOrUpdate_Validate(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3536,9 +3538,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsDelete(string vaultName, string resourceGroupName, string subscriptionId, global::System.Func onOk, global::System.Func onAccepted, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsDelete(string vaultName, string resourceGroupName, string subscriptionId, global::System.Func onOk, global::System.Func onAccepted, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3579,9 +3581,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onAccepted, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onAccepted, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3634,7 +3636,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onAccepted, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupVaultsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onAccepted, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3670,7 +3672,7 @@ public partial class DataProtection default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3718,9 +3720,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsGet(string vaultName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsGet(string vaultName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3760,9 +3762,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsGetResourcesInResourceGroup(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsGetResourcesInResourceGroup(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3800,9 +3802,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsGetResourcesInResourceGroupViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsGetResourcesInResourceGroupViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3853,7 +3855,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsGetResourcesInResourceGroup_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupVaultsGetResourcesInResourceGroup_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3871,13 +3873,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3921,9 +3923,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsGetResourcesInSubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsGetResourcesInSubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3959,9 +3961,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsGetResourcesInSubscriptionViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsGetResourcesInSubscriptionViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4009,7 +4011,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsGetResourcesInSubscription_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupVaultsGetResourcesInSubscription_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4027,13 +4029,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4075,9 +4077,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsGetViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsGetViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4128,7 +4130,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsGet_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupVaultsGet_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4146,13 +4148,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4203,9 +4205,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsPatch(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsPatch(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4251,9 +4253,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsPatchViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsPatchViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4308,7 +4310,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsPatch_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task BackupVaultsPatch_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4424,13 +4426,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4457,7 +4459,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsPatch_Validate(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupVaultsPatch_Validate(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4481,9 +4483,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CheckFeatureSupport(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CheckFeatureSupport(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4526,9 +4528,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CheckFeatureSupportViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CheckFeatureSupportViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4581,7 +4583,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CheckFeatureSupport_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CheckFeatureSupport_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4599,13 +4601,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationResponseBase.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationResponseBase.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4631,7 +4633,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CheckFeatureSupport_Validate(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CheckFeatureSupport_Validate(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4659,8 +4661,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ExportJobsOperationResultGet(string subscriptionId, string resourceGroupName, string vaultName, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ExportJobsOperationResultGet(string subscriptionId, string resourceGroupName, string vaultName, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4674,7 +4677,8 @@ public partial class DataProtection + global::System.Uri.EscapeDataString(vaultName) + "/backupJobs/operations/" + global::System.Uri.EscapeDataString(operationId) - + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4704,8 +4708,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ExportJobsOperationResultGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ExportJobsOperationResultGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4732,7 +4737,8 @@ public partial class DataProtection + vaultName + "/backupJobs/operations/" + operationId - + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4759,7 +4765,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ExportJobsOperationResultGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ExportJobsOperationResultGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4777,7 +4783,7 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ExportJobsResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ExportJobsResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } case global::System.Net.HttpStatusCode.Accepted: @@ -4789,7 +4795,7 @@ public partial class DataProtection default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4839,8 +4845,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ExportJobsTrigger(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ExportJobsTrigger(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4853,7 +4860,8 @@ public partial class DataProtection + "/providers/Microsoft.DataProtection/backupVaults/" + global::System.Uri.EscapeDataString(vaultName) + "/exportBackupJobs" - + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4879,8 +4887,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ExportJobsTriggerViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ExportJobsTriggerViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4905,7 +4914,8 @@ public partial class DataProtection + "/providers/Microsoft.DataProtection/backupVaults/" + vaultName + "/exportBackupJobs" - + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4931,7 +4941,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ExportJobsTrigger_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ExportJobsTrigger_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5051,7 +5061,7 @@ public partial class DataProtection default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5100,9 +5110,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task FindRestorableTimeRangesPost(string vaultName, string resourceGroupName, string subscriptionId, string backupInstances, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task FindRestorableTimeRangesPost(string vaultName, string resourceGroupName, string subscriptionId, string backupInstances, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5148,9 +5158,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task FindRestorableTimeRangesPostViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task FindRestorableTimeRangesPostViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5209,7 +5219,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FindRestorableTimeRangesPost_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task FindRestorableTimeRangesPost_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5227,13 +5237,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesResponseResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesResponseResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5261,7 +5271,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FindRestorableTimeRangesPost_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstances, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task FindRestorableTimeRangesPost_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstances, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5286,9 +5296,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GetOperationResultPatch(string vaultName, string resourceGroupName, string subscriptionId, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GetOperationResultPatch(string vaultName, string resourceGroupName, string subscriptionId, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5328,9 +5338,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GetOperationResultPatchViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GetOperationResultPatchViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5384,7 +5394,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task GetOperationResultPatch_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task GetOperationResultPatch_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5402,13 +5412,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5458,9 +5468,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GetOperationStatus(string subscriptionId, 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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GetOperationStatus(string subscriptionId, 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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5499,9 +5509,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GetOperationStatusViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GetOperationStatusViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5552,7 +5562,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task GetOperationStatus_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task GetOperationStatus_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5570,13 +5580,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5625,9 +5635,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobGet(string subscriptionId, string resourceGroupName, string vaultName, string jobId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobGet(string subscriptionId, string resourceGroupName, string vaultName, string jobId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5668,9 +5678,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - 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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + 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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5724,7 +5734,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobGet_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobGet_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5742,13 +5752,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJobResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJobResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5798,9 +5808,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsList(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsList(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5840,9 +5850,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsListViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsListViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5894,7 +5904,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsList_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobsList_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5912,13 +5922,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJobResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJobResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5967,9 +5977,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationResultGet(string subscriptionId, string operationId, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationResultGet(string subscriptionId, string operationId, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6009,9 +6019,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationResultGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationResultGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6063,7 +6073,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationResultGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationResultGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6081,19 +6091,19 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } case global::System.Net.HttpStatusCode.Accepted: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\xidi\.autorest\@autorest_powershell@3.0.423\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\VssAdministrator\.autorest\@autorest_powershell@3.0.428\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6138,9 +6148,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6174,9 +6184,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsListViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsListViaIdentity(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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6219,7 +6229,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationsList_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsList_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6237,13 +6247,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6288,9 +6298,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RecoveryPointGet(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, string recoveryPointId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RecoveryPointGet(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, string recoveryPointId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6333,9 +6343,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - 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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + 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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6392,7 +6402,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RecoveryPointGet_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task RecoveryPointGet_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6410,13 +6420,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6471,9 +6481,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RecoveryPointsGetList(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, string Filter, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RecoveryPointsGetList(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, string Filter, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6521,9 +6531,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RecoveryPointsGetListViaIdentity(global::System.String viaIdentity, string Filter, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RecoveryPointsGetListViaIdentity(global::System.String viaIdentity, string Filter, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-02-01-preview"; + var apiVersion = @"2021-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6582,7 +6592,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RecoveryPointsGetList_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task RecoveryPointsGetList_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.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6600,13 +6610,13 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AbsoluteDeleteOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AbsoluteDeleteOption.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AbsoluteDeleteOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AbsoluteDeleteOption.PowerShell.cs index 9329c88c037c..55d28621b3b2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AbsoluteDeleteOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AbsoluteDeleteOption.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AbsoluteDeleteOption partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal AbsoluteDeleteOption(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,33 @@ internal AbsoluteDeleteOption(global::System.Management.Automation.PSObject cont return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAbsoluteDeleteOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAbsoluteDeleteOption DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AbsoluteDeleteOption(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAbsoluteDeleteOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAbsoluteDeleteOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AbsoluteDeleteOption(content); } @@ -118,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAbsoluteDeleteOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAbsoluteDeleteOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AbsoluteDeleteOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AbsoluteDeleteOption.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AbsoluteDeleteOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AbsoluteDeleteOption.TypeConverter.cs index b3fa766b9de3..f8ce3d191a41 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AbsoluteDeleteOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AbsoluteDeleteOption.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAbsoluteDeleteOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAbsoluteDeleteOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAbsoluteDeleteOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAbsoluteDeleteOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AbsoluteDeleteOption.cs b/src/DataProtection/generated/api/Models/Api202101/AbsoluteDeleteOption.cs similarity index 73% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AbsoluteDeleteOption.cs rename to src/DataProtection/generated/api/Models/Api202101/AbsoluteDeleteOption.cs index 9b2968dbeab8..157ac204fbc0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AbsoluteDeleteOption.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AbsoluteDeleteOption.cs @@ -1,26 +1,26 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Delete option with duration public partial class AbsoluteDeleteOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAbsoluteDeleteOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAbsoluteDeleteOptionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAbsoluteDeleteOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAbsoluteDeleteOptionInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption __deleteOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DeleteOption(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption __deleteOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DeleteOption(); /// Duration of deletion after given timespan [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Duration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)__deleteOption).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)__deleteOption).Duration = value ; } + public string Duration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)__deleteOption).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)__deleteOption).Duration = value ; } /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)__deleteOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)__deleteOption).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)__deleteOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)__deleteOption).ObjectType = value ; } /// Creates an new instance. public AbsoluteDeleteOption() @@ -43,13 +43,13 @@ public AbsoluteDeleteOption() /// Delete option with duration public partial interface IAbsoluteDeleteOption : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption { } /// Delete option with duration internal partial interface IAbsoluteDeleteOptionInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal { } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AbsoluteDeleteOption.json.cs b/src/DataProtection/generated/api/Models/Api202101/AbsoluteDeleteOption.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AbsoluteDeleteOption.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AbsoluteDeleteOption.json.cs index d86351cd0aec..45962c907657 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AbsoluteDeleteOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AbsoluteDeleteOption.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,18 +58,18 @@ internal AbsoluteDeleteOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection. { return; } - __deleteOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DeleteOption(json); + __deleteOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DeleteOption(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAbsoluteDeleteOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAbsoluteDeleteOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAbsoluteDeleteOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAbsoluteDeleteOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAbsoluteDeleteOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAbsoluteDeleteOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AbsoluteDeleteOption(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdHocBackupRuleOptions.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AdHocBackupRuleOptions.PowerShell.cs similarity index 68% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdHocBackupRuleOptions.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AdHocBackupRuleOptions.PowerShell.cs index eedcb3cd116f..e1e77e0b2955 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdHocBackupRuleOptions.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdHocBackupRuleOptions.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AdHocBackupRuleOptions partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,14 +61,14 @@ internal AdHocBackupRuleOptions(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)this).TriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption) content.GetValueForProperty("TriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)this).TriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)this).RuleName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)this).TriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption) content.GetValueForProperty("TriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)this).TriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)this).RuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -81,36 +81,36 @@ internal AdHocBackupRuleOptions(global::System.Management.Automation.PSObject co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)this).TriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption) content.GetValueForProperty("TriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)this).TriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)this).RuleName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)this).TriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption) content.GetValueForProperty("TriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)this).TriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)this).RuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AdHocBackupRuleOptions(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AdHocBackupRuleOptions(content); } @@ -120,7 +120,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdHocBackupRuleOptions.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AdHocBackupRuleOptions.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdHocBackupRuleOptions.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AdHocBackupRuleOptions.TypeConverter.cs index 232a77e0c7af..1e3be0f149ac 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdHocBackupRuleOptions.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdHocBackupRuleOptions.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdHocBackupRuleOptions.cs b/src/DataProtection/generated/api/Models/Api202101/AdHocBackupRuleOptions.cs similarity index 70% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdHocBackupRuleOptions.cs rename to src/DataProtection/generated/api/Models/Api202101/AdHocBackupRuleOptions.cs index 14549c4f440f..6c262f1b801e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdHocBackupRuleOptions.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdHocBackupRuleOptions.cs @@ -1,15 +1,15 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Adhoc backup rules public partial class AdHocBackupRuleOptions : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal { /// Internal Acessors for TriggerOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal.TriggerOption { get => (this._triggerOption = this._triggerOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBackupTriggerOption()); set { {_triggerOption = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal.TriggerOption { get => (this._triggerOption = this._triggerOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBackupTriggerOption()); set { {_triggerOption = value;} } } /// Backing field for property. private string _ruleName; @@ -18,14 +18,14 @@ public partial class AdHocBackupRuleOptions : public string RuleName { get => this._ruleName; set => this._ruleName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption _triggerOption; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption _triggerOption; /// Adhoc backup trigger option [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption TriggerOption { get => (this._triggerOption = this._triggerOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBackupTriggerOption()); set => this._triggerOption = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption TriggerOption { get => (this._triggerOption = this._triggerOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBackupTriggerOption()); set => this._triggerOption = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TriggerOptionRetentionTagOverride { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOptionInternal)TriggerOption).RetentionTagOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOptionInternal)TriggerOption).RetentionTagOverride = value ?? null; } + public string TriggerOptionRetentionTagOverride { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOptionInternal)TriggerOption).RetentionTagOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOptionInternal)TriggerOption).RetentionTagOverride = value ?? null; } /// Creates an new instance. public AdHocBackupRuleOptions() @@ -60,7 +60,7 @@ internal partial interface IAdHocBackupRuleOptionsInternal { string RuleName { get; set; } /// Adhoc backup trigger option - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption TriggerOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption TriggerOption { get; set; } string TriggerOptionRetentionTagOverride { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdHocBackupRuleOptions.json.cs b/src/DataProtection/generated/api/Models/Api202101/AdHocBackupRuleOptions.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdHocBackupRuleOptions.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AdHocBackupRuleOptions.json.cs index 31745f6b2040..af43ac0b6c80 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdHocBackupRuleOptions.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdHocBackupRuleOptions.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal AdHocBackupRuleOptions(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio { return; } - {_triggerOption = If( json?.PropertyT("triggerOption"), out var __jsonTriggerOption) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBackupTriggerOption.FromJson(__jsonTriggerOption) : TriggerOption;} + {_triggerOption = If( json?.PropertyT("triggerOption"), out var __jsonTriggerOption) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBackupTriggerOption.FromJson(__jsonTriggerOption) : TriggerOption;} {_ruleName = If( json?.PropertyT("ruleName"), out var __jsonRuleName) ? (string)__jsonRuleName : (string)RuleName;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AdHocBackupRuleOptions(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBackupTriggerOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AdhocBackupTriggerOption.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBackupTriggerOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AdhocBackupTriggerOption.PowerShell.cs index 1206d9da8eb6..684ff71bed6e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBackupTriggerOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdhocBackupTriggerOption.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AdhocBackupTriggerOption partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,12 +61,12 @@ internal AdhocBackupTriggerOption(global::System.Collections.IDictionary content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride = (string) content.GetValueForProperty("RetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride = (string) content.GetValueForProperty("RetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,34 +79,34 @@ internal AdhocBackupTriggerOption(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride = (string) content.GetValueForProperty("RetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride = (string) content.GetValueForProperty("RetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AdhocBackupTriggerOption(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AdhocBackupTriggerOption(content); } @@ -116,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBackupTriggerOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AdhocBackupTriggerOption.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBackupTriggerOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AdhocBackupTriggerOption.TypeConverter.cs index e89695acbf6c..8887070c5766 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBackupTriggerOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdhocBackupTriggerOption.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBackupTriggerOption.cs b/src/DataProtection/generated/api/Models/Api202101/AdhocBackupTriggerOption.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBackupTriggerOption.cs rename to src/DataProtection/generated/api/Models/Api202101/AdhocBackupTriggerOption.cs index 6004c86ec3cf..884d1675600f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBackupTriggerOption.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdhocBackupTriggerOption.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Adhoc backup trigger option public partial class AdhocBackupTriggerOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOptionInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBackupTriggerOption.json.cs b/src/DataProtection/generated/api/Models/Api202101/AdhocBackupTriggerOption.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBackupTriggerOption.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AdhocBackupTriggerOption.json.cs index abb304a1403e..9ced5fc347e7 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBackupTriggerOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdhocBackupTriggerOption.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -63,13 +63,13 @@ internal AdhocBackupTriggerOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtect } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AdhocBackupTriggerOption(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTaggingCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTaggingCriteria.PowerShell.cs similarity index 65% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTaggingCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AdhocBasedTaggingCriteria.PowerShell.cs index 095a003b4f41..fa5da76411b4 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTaggingCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTaggingCriteria.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AdhocBasedTaggingCriteria partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,15 +61,15 @@ internal AdhocBasedTaggingCriteria(global::System.Collections.IDictionary conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTagTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,37 +82,37 @@ internal AdhocBasedTaggingCriteria(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTagTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AdhocBasedTaggingCriteria(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AdhocBasedTaggingCriteria(content); } @@ -122,7 +122,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTaggingCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTaggingCriteria.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTaggingCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AdhocBasedTaggingCriteria.TypeConverter.cs index 15d84b3df063..98dd4bd996bd 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTaggingCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTaggingCriteria.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTaggingCriteria.cs b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTaggingCriteria.cs similarity index 68% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTaggingCriteria.cs rename to src/DataProtection/generated/api/Models/Api202101/AdhocBasedTaggingCriteria.cs index f2871a6f7d29..7a99d7cdd4bb 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTaggingCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTaggingCriteria.cs @@ -1,40 +1,40 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Adhoc backup tagging criteria public partial class AdhocBasedTaggingCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal { /// Internal Acessors for TagInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal.TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTag()); set { {_tagInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal.TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTag()); set { {_tagInfo = value;} } } /// Internal Acessors for TagInfoETag - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).ETag = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).ETag = value; } /// Internal Acessors for TagInfoId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).Id = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag _tagInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag _tagInfo; /// Retention tag information [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTag()); set => this._tagInfo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTag()); set => this._tagInfo = value; } /// Retention Tag version. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).ETag; } + public string TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).ETag; } /// Retention Tag version. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).Id; } + public string TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).Id; } /// Retention Tag Name to relate it to retention rule. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TagInfoTagName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).TagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).TagName = value ?? null; } + public string TagInfoTagName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).TagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).TagName = value ?? null; } /// Creates an new instance. public AdhocBasedTaggingCriteria() @@ -77,7 +77,7 @@ internal partial interface IAdhocBasedTaggingCriteriaInternal { /// Retention tag information - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag TagInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag TagInfo { get; set; } /// Retention Tag version. string TagInfoETag { get; set; } /// Retention Tag version. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTaggingCriteria.json.cs b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTaggingCriteria.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTaggingCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AdhocBasedTaggingCriteria.json.cs index 7ca51858f75e..cc012795af99 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTaggingCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTaggingCriteria.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,18 +58,18 @@ internal AdhocBasedTaggingCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProtec { return; } - {_tagInfo = If( json?.PropertyT("tagInfo"), out var __jsonTagInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTag.FromJson(__jsonTagInfo) : TagInfo;} + {_tagInfo = If( json?.PropertyT("tagInfo"), out var __jsonTagInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTag.FromJson(__jsonTagInfo) : TagInfo;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AdhocBasedTaggingCriteria(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTriggerContext.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTriggerContext.PowerShell.cs similarity index 57% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTriggerContext.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AdhocBasedTriggerContext.PowerShell.cs index 3cb4ef41bdee..d14fa9c628cf 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTriggerContext.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTriggerContext.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AdhocBasedTriggerContext partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,17 +61,17 @@ internal AdhocBasedTriggerContext(global::System.Collections.IDictionary content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TaggingCriterion, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBasedTaggingCriteriaTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag) content.GetValueForProperty("TaggingCriterionTagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTagTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TagInfoETag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TagInfoId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TaggingCriterion, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBasedTaggingCriteriaTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag) content.GetValueForProperty("TaggingCriterionTagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TagInfoTagName, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -84,39 +84,39 @@ internal AdhocBasedTriggerContext(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TaggingCriterion, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBasedTaggingCriteriaTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag) content.GetValueForProperty("TaggingCriterionTagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTagTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TagInfoETag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TagInfoId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TaggingCriterion, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBasedTaggingCriteriaTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag) content.GetValueForProperty("TaggingCriterionTagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal)this).TagInfoTagName, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContext DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContext DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AdhocBasedTriggerContext(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AdhocBasedTriggerContext(content); } @@ -126,7 +126,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContext FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContext FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTriggerContext.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTriggerContext.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTriggerContext.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AdhocBasedTriggerContext.TypeConverter.cs index 8b867145d3ba..28948cfcd708 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTriggerContext.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTriggerContext.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContext ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContext ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContext).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContext).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTriggerContext.cs b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTriggerContext.cs similarity index 63% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTriggerContext.cs rename to src/DataProtection/generated/api/Models/Api202101/AdhocBasedTriggerContext.cs index b0f29310c2c0..a852fb41d6b8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTriggerContext.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTriggerContext.cs @@ -1,53 +1,53 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Adhoc trigger context public partial class AdhocBasedTriggerContext : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContext, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContext, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TriggerContext(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TriggerContext(); /// Internal Acessors for TagInfoETag - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag = value; } /// Internal Acessors for TagInfoId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId = value; } /// Internal Acessors for TaggingCriterion - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal.TaggingCriterion { get => (this._taggingCriterion = this._taggingCriterion ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBasedTaggingCriteria()); set { {_taggingCriterion = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal.TaggingCriterion { get => (this._taggingCriterion = this._taggingCriterion ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBasedTaggingCriteria()); set { {_taggingCriterion = value;} } } /// Internal Acessors for TaggingCriterionTagInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContextInternal.TaggingCriterionTagInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContextInternal.TaggingCriterionTagInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfo = value; } /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)__triggerContext).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)__triggerContext).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)__triggerContext).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)__triggerContext).ObjectType = value ; } /// Retention Tag version. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag; } + public string TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag; } /// Retention Tag version. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId; } + public string TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId; } /// Retention Tag Name to relate it to retention rule. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TagInfoTagName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoTagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoTagName = value ?? null; } + public string TagInfoTagName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoTagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoTagName = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria _taggingCriterion; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria _taggingCriterion; /// Tagging Criteria containing retention tag for adhoc backup. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria TaggingCriterion { get => (this._taggingCriterion = this._taggingCriterion ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBasedTaggingCriteria()); set => this._taggingCriterion = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria TaggingCriterion { get => (this._taggingCriterion = this._taggingCriterion ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBasedTaggingCriteria()); set => this._taggingCriterion = value; } /// Creates an new instance. public AdhocBasedTriggerContext() @@ -70,7 +70,7 @@ public AdhocBasedTriggerContext() /// Adhoc trigger context public partial interface IAdhocBasedTriggerContext : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext { /// Retention Tag version. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -100,7 +100,7 @@ public partial interface IAdhocBasedTriggerContext : } /// Adhoc trigger context internal partial interface IAdhocBasedTriggerContextInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal { /// Retention Tag version. string TagInfoETag { get; set; } @@ -109,9 +109,9 @@ internal partial interface IAdhocBasedTriggerContextInternal : /// Retention Tag Name to relate it to retention rule. string TagInfoTagName { get; set; } /// Tagging Criteria containing retention tag for adhoc backup. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTaggingCriteria TaggingCriterion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTaggingCriteria TaggingCriterion { get; set; } /// Retention tag information - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag TaggingCriterionTagInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag TaggingCriterionTagInfo { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTriggerContext.json.cs b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTriggerContext.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTriggerContext.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AdhocBasedTriggerContext.json.cs index 707db989ad96..f83c990c68e1 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AdhocBasedTriggerContext.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AdhocBasedTriggerContext.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal AdhocBasedTriggerContext(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TriggerContext(json); - {_taggingCriterion = If( json?.PropertyT("taggingCriteria"), out var __jsonTaggingCriteria) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBasedTaggingCriteria.FromJson(__jsonTaggingCriteria) : TaggingCriterion;} + __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TriggerContext(json); + {_taggingCriterion = If( json?.PropertyT("taggingCriteria"), out var __jsonTaggingCriteria) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBasedTaggingCriteria.FromJson(__jsonTaggingCriteria) : TaggingCriterion;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContext. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContext. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContext. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContext. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBasedTriggerContext FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBasedTriggerContext FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AdhocBasedTriggerContext(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api202101/AzureBackupDiscreteRecoveryPoint.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupDiscreteRecoveryPoint.PowerShell.cs new file mode 100644 index 000000000000..3bf6a748e5e1 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupDiscreteRecoveryPoint.PowerShell.cs @@ -0,0 +1,151 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Azure backup discrete RecoveryPoint + [System.ComponentModel.TypeConverter(typeof(AzureBackupDiscreteRecoveryPointTypeConverter))] + public partial class AzureBackupDiscreteRecoveryPoint + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureBackupDiscreteRecoveryPoint(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails[]) content.GetValueForProperty("RecoveryPointDataStoresDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RecoveryPointDataStoreDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName = (string) content.GetValueForProperty("RetentionTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion = (string) content.GetValueForProperty("RetentionTagVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AzureBackupDiscreteRecoveryPoint(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails[]) content.GetValueForProperty("RecoveryPointDataStoresDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RecoveryPointDataStoreDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName = (string) content.GetValueForProperty("RetentionTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion = (string) content.GetValueForProperty("RetentionTagVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal)this).ObjectType, 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.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureBackupDiscreteRecoveryPoint(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureBackupDiscreteRecoveryPoint(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Azure backup discrete RecoveryPoint + [System.ComponentModel.TypeConverter(typeof(AzureBackupDiscreteRecoveryPointTypeConverter))] + public partial interface IAzureBackupDiscreteRecoveryPoint + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs index 6f0a0366c848..601f4f2b0060 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupDiscreteRecoveryPoint.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupDiscreteRecoveryPoint.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupDiscreteRecoveryPoint.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupDiscreteRecoveryPoint.cs index b9cde7f71683..4c8131123de4 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupDiscreteRecoveryPoint.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupDiscreteRecoveryPoint.cs @@ -1,18 +1,18 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup discrete RecoveryPoint public partial class AzureBackupDiscreteRecoveryPoint : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPoint, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPoint, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPointInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint __azureBackupRecoveryPoint = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPoint(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint __azureBackupRecoveryPoint = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPoint(); /// Backing field for property. private string _friendlyName; @@ -21,7 +21,7 @@ public partial class AzureBackupDiscreteRecoveryPoint : public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal)__azureBackupRecoveryPoint).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal)__azureBackupRecoveryPoint).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal)__azureBackupRecoveryPoint).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal)__azureBackupRecoveryPoint).ObjectType = value ; } /// Backing field for property. private string _policyName; @@ -36,10 +36,10 @@ public partial class AzureBackupDiscreteRecoveryPoint : public string PolicyVersion { get => this._policyVersion; set => this._policyVersion = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails[] _recoveryPointDataStoresDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails[] _recoveryPointDataStoresDetail; [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get => this._recoveryPointDataStoresDetail; set => this._recoveryPointDataStoresDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get => this._recoveryPointDataStoresDetail; set => this._recoveryPointDataStoresDetail = value; } /// Backing field for property. private string _recoveryPointId; @@ -92,7 +92,7 @@ public AzureBackupDiscreteRecoveryPoint() /// Azure backup discrete RecoveryPoint public partial interface IAzureBackupDiscreteRecoveryPoint : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint { [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -123,8 +123,8 @@ public partial interface IAzureBackupDiscreteRecoveryPoint : ReadOnly = false, Description = @"", SerializedName = @"recoveryPointDataStoresDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -169,7 +169,7 @@ public partial interface IAzureBackupDiscreteRecoveryPoint : } /// Azure backup discrete RecoveryPoint internal partial interface IAzureBackupDiscreteRecoveryPointInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal { string FriendlyName { get; set; } @@ -177,7 +177,7 @@ internal partial interface IAzureBackupDiscreteRecoveryPointInternal : string PolicyVersion { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get; set; } string RecoveryPointId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupDiscreteRecoveryPoint.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupDiscreteRecoveryPoint.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupDiscreteRecoveryPoint.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupDiscreteRecoveryPoint.json.cs index 6545649340b0..d91883374d8e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupDiscreteRecoveryPoint.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupDiscreteRecoveryPoint.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,9 +58,9 @@ internal AzureBackupDiscreteRecoveryPoint(Microsoft.Azure.PowerShell.Cmdlets.Dat { return; } - __azureBackupRecoveryPoint = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPoint(json); + __azureBackupRecoveryPoint = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPoint(json); {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} - {_recoveryPointDataStoresDetail = If( json?.PropertyT("recoveryPointDataStoresDetails"), out var __jsonRecoveryPointDataStoresDetails) ? If( __jsonRecoveryPointDataStoresDetails as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RecoveryPointDataStoreDetails.FromJson(__u) )) ))() : null : RecoveryPointDataStoresDetail;} + {_recoveryPointDataStoresDetail = If( json?.PropertyT("recoveryPointDataStoresDetails"), out var __jsonRecoveryPointDataStoresDetails) ? If( __jsonRecoveryPointDataStoresDetails as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RecoveryPointDataStoreDetails.FromJson(__u) )) ))() : null : RecoveryPointDataStoresDetail;} {_recoveryPointTime = If( json?.PropertyT("recoveryPointTime"), out var __jsonRecoveryPointTime) ? global::System.DateTime.TryParse((string)__jsonRecoveryPointTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonRecoveryPointTimeValue) ? __jsonRecoveryPointTimeValue : RecoveryPointTime : RecoveryPointTime;} {_policyName = If( json?.PropertyT("policyName"), out var __jsonPolicyName) ? (string)__jsonPolicyName : (string)PolicyName;} {_policyVersion = If( json?.PropertyT("policyVersion"), out var __jsonPolicyVersion) ? (string)__jsonPolicyVersion : (string)PolicyVersion;} @@ -72,13 +72,13 @@ internal AzureBackupDiscreteRecoveryPoint(Microsoft.Azure.PowerShell.Cmdlets.Dat } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupDiscreteRecoveryPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupDiscreteRecoveryPoint(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs similarity index 67% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs index 8f81e03f340d..6855d68144df 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureBackupFindRestorableTimeRangesRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,14 +61,14 @@ internal AzureBackupFindRestorableTimeRangesRequest(global::System.Collections.I return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -81,36 +81,36 @@ internal AzureBackupFindRestorableTimeRangesRequest(global::System.Management.Au return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupFindRestorableTimeRangesRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupFindRestorableTimeRangesRequest(content); } @@ -121,7 +121,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs index 5f9cf1e75181..8af74bebf0a9 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequest.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequest.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequest.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequest.cs index e3f04c032de8..3a9bcffaac40 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequest.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequest.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List Restore Ranges Request public partial class AzureBackupFindRestorableTimeRangesRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequest.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequest.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequest.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequest.json.cs index 050400b8818f..f5fa724e640d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequest.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,13 +65,13 @@ internal AzureBackupFindRestorableTimeRangesRequest(Microsoft.Azure.PowerShell.C } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupFindRestorableTimeRangesRequest(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs new file mode 100644 index 000000000000..1e224caf8de4 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs @@ -0,0 +1,154 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// List Restore Ranges Request + [System.ComponentModel.TypeConverter(typeof(AzureBackupFindRestorableTimeRangesRequestResourceTypeConverter))] + public partial class AzureBackupFindRestorableTimeRangesRequestResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureBackupFindRestorableTimeRangesRequestResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestHeadersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("ContentSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime = (string) content.GetValueForProperty("ContentStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime = (string) content.GetValueForProperty("ContentEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AzureBackupFindRestorableTimeRangesRequestResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestHeadersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("ContentSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime = (string) content.GetValueForProperty("ContentStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime = (string) content.GetValueForProperty("ContentEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime, 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.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureBackupFindRestorableTimeRangesRequestResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureBackupFindRestorableTimeRangesRequestResource(content); + } + + /// + /// Creates a new instance of , deserializing the content + /// from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// List Restore Ranges Request + [System.ComponentModel.TypeConverter(typeof(AzureBackupFindRestorableTimeRangesRequestResourceTypeConverter))] + public partial interface IAzureBackupFindRestorableTimeRangesRequestResource + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs index 8bdd7d3ed5cc..97fa6ce3e593 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequestResource.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequestResource.cs similarity index 63% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequestResource.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequestResource.cs index a5017d9d3231..5e9fb8e89a0a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequestResource.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequestResource.cs @@ -1,65 +1,65 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List Restore Ranges Request public partial class AzureBackupFindRestorableTimeRangesRequestResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequest __dppWorkerRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequest __dppWorkerRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequest(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest _content; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest _content; /// AzureBackupFindRestorableTimeRangesRequestResource content [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesRequest()); set => this._content = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesRequest()); set => this._content = value; } /// End time for the List Restore Ranges request [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ContentEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).EndTime = value ?? null; } + public string ContentEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).EndTime = value ?? null; } /// Gets or sets the type of the source data store. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType? ContentSourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).SourceDataStoreType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType? ContentSourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).SourceDataStoreType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType)""); } /// Start time for the List Restore Ranges request [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ContentStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).StartTime = value ?? null; } + public string ContentStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).StartTime = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string CultureInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).CultureInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).CultureInfo = value ?? null; } + public string CultureInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).CultureInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).CultureInfo = value ?? null; } /// /// Dictionary of /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders Header { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).Header; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).Header = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders Header { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).Header; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).Header = value ?? null /* model class */; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string HttpMethod { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).HttpMethod; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).HttpMethod = value ?? null; } + public string HttpMethod { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).HttpMethod; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).HttpMethod = value ?? null; } /// Internal Acessors for Content - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal.Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesRequest()); set { {_content = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResourceInternal.Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesRequest()); set { {_content = value;} } } /// Dictionary of [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).Parameter = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).Parameter = value ?? null /* model class */; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string SubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).SubscriptionId = value ?? null; } + public string SubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).SubscriptionId = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string[] SupportedGroupVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).SupportedGroupVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).SupportedGroupVersion = value ?? null /* arrayOf */; } + public string[] SupportedGroupVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).SupportedGroupVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).SupportedGroupVersion = value ?? null /* arrayOf */; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)__dppWorkerRequest).Uri = value ?? null; } + public string Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)__dppWorkerRequest).Uri = value ?? null; } /// /// Creates an new instance. @@ -84,7 +84,7 @@ public AzureBackupFindRestorableTimeRangesRequestResource() /// List Restore Ranges Request public partial interface IAzureBackupFindRestorableTimeRangesRequestResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequest { /// End time for the List Restore Ranges request [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -114,10 +114,10 @@ public partial interface IAzureBackupFindRestorableTimeRangesRequestResource : } /// List Restore Ranges Request internal partial interface IAzureBackupFindRestorableTimeRangesRequestResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal { /// AzureBackupFindRestorableTimeRangesRequestResource content - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest Content { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest Content { get; set; } /// End time for the List Restore Ranges request string ContentEndTime { get; set; } /// Gets or sets the type of the source data store. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequestResource.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequestResource.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequestResource.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequestResource.json.cs index 372158339be8..1a0fb1a75a6a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequestResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesRequestResource.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -59,19 +59,19 @@ internal AzureBackupFindRestorableTimeRangesRequestResource(Microsoft.Azure.Powe { return; } - __dppWorkerRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequest(json); - {_content = If( json?.PropertyT("content"), out var __jsonContent) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesRequest.FromJson(__jsonContent) : Content;} + __dppWorkerRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequest(json); + {_content = If( json?.PropertyT("content"), out var __jsonContent) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesRequest.FromJson(__jsonContent) : Content;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequestResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupFindRestorableTimeRangesRequestResource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs similarity index 68% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs index 344f8324da43..d9e2a88e0a74 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureBackupFindRestorableTimeRangesResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal AzureBackupFindRestorableTimeRangesResponse(global::System.Collections. return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestorableTimeRangeTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestorableTimeRangeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,35 @@ internal AzureBackupFindRestorableTimeRangesResponse(global::System.Management.A return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestorableTimeRangeTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestorableTimeRangeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupFindRestorableTimeRangesResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupFindRestorableTimeRangesResponse(content); } @@ -119,7 +119,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs index e4cf40194669..70fe241beeb2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponse.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponse.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponse.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponse.cs index 82be6041a4ac..5163f2b1ac79 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponse.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponse.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List Restore Ranges Response public partial class AzureBackupFindRestorableTimeRangesResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseInternal { /// Backing field for property. @@ -15,11 +15,11 @@ public partial class AzureBackupFindRestorableTimeRangesResponse : public string ObjectType { get => this._objectType; set => this._objectType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange[] _restorableTimeRange; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange[] _restorableTimeRange; /// Returns the Restore Ranges available on the Backup Instance. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange[] RestorableTimeRange { get => this._restorableTimeRange; set => this._restorableTimeRange = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange[] RestorableTimeRange { get => this._restorableTimeRange; set => this._restorableTimeRange = value; } /// /// Creates an new instance. @@ -46,8 +46,8 @@ public partial interface IAzureBackupFindRestorableTimeRangesResponse : ReadOnly = false, Description = @"Returns the Restore Ranges available on the Backup Instance.", SerializedName = @"restorableTimeRanges", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange[] RestorableTimeRange { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange[] RestorableTimeRange { get; set; } } /// List Restore Ranges Response @@ -56,7 +56,7 @@ internal partial interface IAzureBackupFindRestorableTimeRangesResponseInternal { string ObjectType { get; set; } /// Returns the Restore Ranges available on the Backup Instance. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange[] RestorableTimeRange { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange[] RestorableTimeRange { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponse.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponse.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponse.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponse.json.cs index b8005f0642b0..ae272ab1947f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponse.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponse.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal AzureBackupFindRestorableTimeRangesResponse(Microsoft.Azure.PowerShell. { return; } - {_restorableTimeRange = If( json?.PropertyT("restorableTimeRanges"), out var __jsonRestorableTimeRanges) ? If( __jsonRestorableTimeRanges as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestorableTimeRange.FromJson(__u) )) ))() : null : RestorableTimeRange;} + {_restorableTimeRange = If( json?.PropertyT("restorableTimeRanges"), out var __jsonRestorableTimeRanges) ? If( __jsonRestorableTimeRanges as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestorableTimeRange.FromJson(__u) )) ))() : null : RestorableTimeRange;} {_objectType = If( json?.PropertyT("objectType"), out var __jsonObjectType) ? (string)__jsonObjectType : (string)ObjectType;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupFindRestorableTimeRangesResponse(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs similarity index 53% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs index 866bb19b51c2..cecc6deb401a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureBackupFindRestorableTimeRangesResponseResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,18 +61,18 @@ internal AzureBackupFindRestorableTimeRangesResponseResource(global::System.Coll return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesResponseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestorableTimeRangeTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestorableTimeRangeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -85,40 +85,40 @@ internal AzureBackupFindRestorableTimeRangesResponseResource(global::System.Mana return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesResponseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestorableTimeRangeTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestorableTimeRangeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupFindRestorableTimeRangesResponseResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupFindRestorableTimeRangesResponseResource(content); } @@ -129,7 +129,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs index 93b2932d4fdf..db01f3d1c998 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponseResource.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponseResource.cs similarity index 59% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponseResource.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponseResource.cs index 5942e0ac14bf..cdec02984763 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponseResource.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponseResource.cs @@ -1,65 +1,65 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List Restore Ranges Response public partial class AzureBackupFindRestorableTimeRangesResponseResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResource(); /// Resource Id represents the complete path to the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesResponse()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesResponse()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type = value; } /// Resource name associated with the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).ObjectType = value ?? null; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse _property; /// AzureBackupFindRestorableTimeRangesResponseResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesResponse()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesResponse()); set => this._property = value; } /// Returns the Restore Ranges available on the Backup Instance. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange[] RestorableTimeRange { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).RestorableTimeRange; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).RestorableTimeRange = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange[] RestorableTimeRange { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).RestorableTimeRange; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).RestorableTimeRange = value ?? null /* arrayOf */; } /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type; } /// /// Creates an new instance. @@ -84,7 +84,7 @@ public AzureBackupFindRestorableTimeRangesResponseResource() /// List Restore Ranges Response public partial interface IAzureBackupFindRestorableTimeRangesResponseResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource { [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -99,19 +99,19 @@ public partial interface IAzureBackupFindRestorableTimeRangesResponseResource : ReadOnly = false, Description = @"Returns the Restore Ranges available on the Backup Instance.", SerializedName = @"restorableTimeRanges", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange[] RestorableTimeRange { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange[] RestorableTimeRange { get; set; } } /// List Restore Ranges Response internal partial interface IAzureBackupFindRestorableTimeRangesResponseResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal { string ObjectType { get; set; } /// AzureBackupFindRestorableTimeRangesResponseResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponse Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponse Property { get; set; } /// Returns the Restore Ranges available on the Backup Instance. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange[] RestorableTimeRange { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange[] RestorableTimeRange { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponseResource.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponseResource.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponseResource.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponseResource.json.cs index 2ced3e2440d7..ea492d0d2ace 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesResponseResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupFindRestorableTimeRangesResponseResource.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -59,19 +59,19 @@ internal AzureBackupFindRestorableTimeRangesResponseResource(Microsoft.Azure.Pow { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesResponse.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesResponse.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesResponseResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupFindRestorableTimeRangesResponseResource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api202101/AzureBackupJob.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJob.PowerShell.cs new file mode 100644 index 000000000000..6bb59b5de4ab --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJob.PowerShell.cs @@ -0,0 +1,211 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// AzureBackup Job Class + [System.ComponentModel.TypeConverter(typeof(AzureBackupJobTypeConverter))] + public partial class AzureBackupJob + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureBackupJob(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ActivityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).BackupInstanceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceSetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).OperationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ProgressUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).RestoreType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceResourceGroup, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).VaultName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DestinationDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime, (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 AzureBackupJob(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ActivityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).BackupInstanceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceSetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DataSourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).OperationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ProgressUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).RestoreType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceResourceGroup, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).VaultName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).DestinationDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureBackupJob(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureBackupJob(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// AzureBackup Job Class + [System.ComponentModel.TypeConverter(typeof(AzureBackupJobTypeConverter))] + public partial interface IAzureBackupJob + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJob.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJob.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJob.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupJob.TypeConverter.cs index 073cc23d6029..ecb82c7eba7f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJob.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJob.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJob.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJob.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJob.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupJob.cs index 6a04ac2e0182..9bfa048b010c 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJob.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJob.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// AzureBackup Job Class public partial class AzureBackupJob : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal { /// Backing field for property. @@ -85,11 +85,11 @@ public partial class AzureBackupJob : public global::System.DateTime? EndTime { get => this._endTime; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[] _errorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[] _errorDetail; /// A List, detailing the errors related to the job [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[] ErrorDetail { get => this._errorDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[] ErrorDetail { get => this._errorDetail; } /// Backing field for property. private string _etag; @@ -98,31 +98,31 @@ public partial class AzureBackupJob : public string Etag { get => this._etag; set => this._etag = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo _extendedInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo _extendedInfo; /// Extended Information about the job [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo ExtendedInfo { get => (this._extendedInfo = this._extendedInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfo()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo ExtendedInfo { get => (this._extendedInfo = this._extendedInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfo()); } /// Job's Additional Details [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).AdditionalDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).AdditionalDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).AdditionalDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).AdditionalDetail = value ?? null /* model class */; } /// State of the Backup Instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState; } + public string ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState; } /// Number of bytes transferred [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public double? ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte; } + public double? ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte; } /// Destination where restore is done [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination; } + public string ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination; } /// List of Sub Tasks of the job [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[] ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).SubTask; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[] ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).SubTask; } /// Backing field for property. private bool _isUserTriggered; @@ -132,46 +132,46 @@ public partial class AzureBackupJob : public bool IsUserTriggered { get => this._isUserTriggered; set => this._isUserTriggered = value; } /// Internal Acessors for BackupInstanceId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.BackupInstanceId { get => this._backupInstanceId; set { {_backupInstanceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.BackupInstanceId { get => this._backupInstanceId; set { {_backupInstanceId = value;} } } /// Internal Acessors for EndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.EndTime { get => this._endTime; set { {_endTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.EndTime { get => this._endTime; set { {_endTime = value;} } } /// Internal Acessors for ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.ErrorDetail { get => this._errorDetail; set { {_errorDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.ErrorDetail { get => this._errorDetail; set { {_errorDetail = value;} } } /// Internal Acessors for ExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.ExtendedInfo { get => (this._extendedInfo = this._extendedInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfo()); set { {_extendedInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.ExtendedInfo { get => (this._extendedInfo = this._extendedInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfo()); set { {_extendedInfo = value;} } } /// Internal Acessors for ExtendedInfoBackupInstanceState - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState = value; } /// Internal Acessors for ExtendedInfoDataTransferredInByte - double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte = value; } /// Internal Acessors for ExtendedInfoRecoveryDestination - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination = value; } /// Internal Acessors for ExtendedInfoSourceRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.ExtendedInfoSourceRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.ExtendedInfoSourceRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPoint = value; } /// Internal Acessors for ExtendedInfoSubTask - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).SubTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).SubTask = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).SubTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).SubTask = value; } /// Internal Acessors for ExtendedInfoTargetRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.ExtendedInfoTargetRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.ExtendedInfoTargetRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPoint = value; } /// Internal Acessors for PolicyId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.PolicyId { get => this._policyId; set { {_policyId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.PolicyId { get => this._policyId; set { {_policyId = value;} } } /// Internal Acessors for PolicyName - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.PolicyName { get => this._policyName; set { {_policyName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.PolicyName { get => this._policyName; set { {_policyName = value;} } } /// Internal Acessors for ProgressUrl - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.ProgressUrl { get => this._progressUrl; set { {_progressUrl = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.ProgressUrl { get => this._progressUrl; set { {_progressUrl = value;} } } /// Internal Acessors for RestoreType - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal.RestoreType { get => this._restoreType; set { {_restoreType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal.RestoreType { get => this._restoreType; set { {_restoreType = value;} } } /// Backing field for property. private string _operation; @@ -233,10 +233,10 @@ public partial class AzureBackupJob : public string SourceDataStoreName { get => this._sourceDataStoreName; set => this._sourceDataStoreName = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointId = value ?? null; } + public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointId = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public global::System.DateTime? SourceRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? SourceRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } /// Backing field for property. private string _sourceResourceGroup; @@ -281,10 +281,10 @@ public partial class AzureBackupJob : public string[] SupportedAction { get => this._supportedAction; set => this._supportedAction = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointId = value ?? null; } + public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointId = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public global::System.DateTime? TargetRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? TargetRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } /// Backing field for property. private string _vaultName; @@ -397,8 +397,8 @@ public partial interface IAzureBackupJob : ReadOnly = true, Description = @"A List, detailing the errors related to the job", SerializedName = @"errorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[] ErrorDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[] ErrorDetail { get; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -413,8 +413,8 @@ public partial interface IAzureBackupJob : ReadOnly = false, Description = @"Job's Additional Details", SerializedName = @"additionalDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } /// State of the Backup Instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -445,8 +445,8 @@ public partial interface IAzureBackupJob : ReadOnly = true, Description = @"List of Sub Tasks of the job", SerializedName = @"subTasks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[] ExtendedInfoSubTask { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[] ExtendedInfoSubTask { get; } /// Indicated that whether the job is adhoc(true) or scheduled(false) [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -640,13 +640,13 @@ internal partial interface IAzureBackupJobInternal /// EndTime of the job(in UTC) global::System.DateTime? EndTime { get; set; } /// A List, detailing the errors related to the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[] ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[] ErrorDetail { get; set; } string Etag { get; set; } /// Extended Information about the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo ExtendedInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo ExtendedInfo { get; set; } /// Job's Additional Details - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } /// State of the Backup Instance string ExtendedInfoBackupInstanceState { get; set; } /// Number of bytes transferred @@ -654,11 +654,11 @@ internal partial interface IAzureBackupJobInternal /// Destination where restore is done string ExtendedInfoRecoveryDestination { get; set; } /// Details of the Source Recovery Point - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails ExtendedInfoSourceRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails ExtendedInfoSourceRecoverPoint { get; set; } /// List of Sub Tasks of the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[] ExtendedInfoSubTask { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[] ExtendedInfoSubTask { get; set; } /// Details of the Target Recovery Point - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails ExtendedInfoTargetRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails ExtendedInfoTargetRecoverPoint { get; set; } /// Indicated that whether the job is adhoc(true) or scheduled(false) bool IsUserTriggered { get; set; } /// diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJob.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJob.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJob.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupJob.json.cs index 2d29311ede49..b3247d010cc1 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJob.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJob.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,7 +58,7 @@ internal AzureBackupJob(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim { return; } - {_extendedInfo = If( json?.PropertyT("extendedInfo"), out var __jsonExtendedInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfo.FromJson(__jsonExtendedInfo) : ExtendedInfo;} + {_extendedInfo = If( json?.PropertyT("extendedInfo"), out var __jsonExtendedInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfo.FromJson(__jsonExtendedInfo) : ExtendedInfo;} {_activityId = If( json?.PropertyT("activityID"), out var __jsonActivityId) ? (string)__jsonActivityId : (string)ActivityId;} {_backupInstanceFriendlyName = If( json?.PropertyT("backupInstanceFriendlyName"), out var __jsonBackupInstanceFriendlyName) ? (string)__jsonBackupInstanceFriendlyName : (string)BackupInstanceFriendlyName;} {_backupInstanceId = If( json?.PropertyT("backupInstanceId"), out var __jsonBackupInstanceId) ? (string)__jsonBackupInstanceId : (string)BackupInstanceId;} @@ -69,7 +69,7 @@ internal AzureBackupJob(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim {_dataSourceType = If( json?.PropertyT("dataSourceType"), out var __jsonDataSourceType) ? (string)__jsonDataSourceType : (string)DataSourceType;} {_duration = If( json?.PropertyT("duration"), out var __jsonDuration) ? (string)__jsonDuration : (string)Duration;} {_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;} - {_errorDetail = If( json?.PropertyT("errorDetails"), out var __jsonErrorDetails) ? If( __jsonErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingError.FromJson(__u) )) ))() : null : ErrorDetail;} + {_errorDetail = If( json?.PropertyT("errorDetails"), out var __jsonErrorDetails) ? If( __jsonErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingError.FromJson(__u) )) ))() : null : ErrorDetail;} {_isUserTriggered = If( json?.PropertyT("isUserTriggered"), out var __jsonIsUserTriggered) ? (bool)__jsonIsUserTriggered : IsUserTriggered;} {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation;} {_operationCategory = If( json?.PropertyT("operationCategory"), out var __jsonOperationCategory) ? (string)__jsonOperationCategory : (string)OperationCategory;} @@ -92,13 +92,13 @@ internal AzureBackupJob(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupJob(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResource.PowerShell.cs new file mode 100644 index 000000000000..6e4b58ea032d --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResource.PowerShell.cs @@ -0,0 +1,223 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// AzureBackup Job Resource Class + [System.ComponentModel.TypeConverter(typeof(AzureBackupJobResourceTypeConverter))] + public partial class AzureBackupJobResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureBackupJobResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ActivityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).BackupInstanceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceSetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).OperationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ProgressUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).RestoreType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceResourceGroup, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).VaultName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DestinationDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime, (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 AzureBackupJobResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ActivityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).BackupInstanceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceSetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DataSourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).OperationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ProgressUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).RestoreType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceResourceGroup, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).VaultName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).DestinationDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureBackupJobResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureBackupJobResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// AzureBackup Job Resource Class + [System.ComponentModel.TypeConverter(typeof(AzureBackupJobResourceTypeConverter))] + public partial interface IAzureBackupJobResource + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResource.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResource.TypeConverter.cs index 8c10bc8be3b3..0f25b86532af 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResource.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResource.cs similarity index 67% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResource.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResource.cs index 5ebd1c58e9f1..a8151a0cd2b5 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResource.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResource.cs @@ -1,249 +1,249 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// AzureBackup Job Resource Class public partial class AzureBackupJobResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResource(); /// Job Activity Id [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ActivityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ActivityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ActivityId = value ?? null; } + public string ActivityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ActivityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ActivityId = value ?? null; } /// Name of the Backup Instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string BackupInstanceFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).BackupInstanceFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).BackupInstanceFriendlyName = value ?? null; } + public string BackupInstanceFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).BackupInstanceFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).BackupInstanceFriendlyName = value ?? null; } /// ARM ID of the Backup Instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string BackupInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).BackupInstanceId; } + public string BackupInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).BackupInstanceId; } /// ARM ID of the DataSource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DataSourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).DataSourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).DataSourceId = value ?? null; } + public string DataSourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).DataSourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).DataSourceId = value ?? null; } /// Location of the DataSource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DataSourceLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).DataSourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).DataSourceLocation = value ?? null; } + public string DataSourceLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).DataSourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).DataSourceLocation = value ?? null; } /// User Friendly Name of the DataSource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DataSourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).DataSourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).DataSourceName = value ?? null; } + public string DataSourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).DataSourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).DataSourceName = value ?? null; } /// Data Source Set Name of the DataSource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DataSourceSetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).DataSourceSetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).DataSourceSetName = value ?? null; } + public string DataSourceSetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).DataSourceSetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).DataSourceSetName = value ?? null; } /// Type of DataSource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DataSourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).DataSourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).DataSourceType = value ?? null; } + public string DataSourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).DataSourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).DataSourceType = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DestinationDataStoreName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).DestinationDataStoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).DestinationDataStoreName = value ?? null; } + public string DestinationDataStoreName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).DestinationDataStoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).DestinationDataStoreName = value ?? null; } /// Total run time of the job. ISO 8601 format. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string Duration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).Duration = value ?? null; } + public string Duration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).Duration = value ?? null; } /// EndTime of the job(in UTC) [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).EndTime; } + public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).EndTime; } /// A List, detailing the errors related to the job [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[] ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ErrorDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[] ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ErrorDetail; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).Etag = value ?? null; } + public string Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).Etag = value ?? null; } /// Job's Additional Details [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoAdditionalDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoAdditionalDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoAdditionalDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoAdditionalDetail = value ?? null /* model class */; } /// State of the Backup Instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState; } + public string ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState; } /// Number of bytes transferred [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public double? ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte; } + public double? ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte; } /// Destination where restore is done [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination; } + public string ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination; } /// List of Sub Tasks of the job [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[] ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoSubTask; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[] ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoSubTask; } /// Resource Id represents the complete path to the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id; } /// Indicated that whether the job is adhoc(true) or scheduled(false) [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public bool? IsUserTriggered { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).IsUserTriggered; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).IsUserTriggered = value ?? default(bool); } + public bool? IsUserTriggered { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).IsUserTriggered; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).IsUserTriggered = value ?? default(bool); } /// Internal Acessors for BackupInstanceId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.BackupInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).BackupInstanceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).BackupInstanceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.BackupInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).BackupInstanceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).BackupInstanceId = value; } /// Internal Acessors for EndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).EndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).EndTime = value; } /// Internal Acessors for ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ErrorDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ErrorDetail = value; } /// Internal Acessors for ExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.ExtendedInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.ExtendedInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfo = value; } /// Internal Acessors for ExtendedInfoBackupInstanceState - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState = value; } /// Internal Acessors for ExtendedInfoDataTransferredInByte - double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte = value; } /// Internal Acessors for ExtendedInfoRecoveryDestination - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination = value; } /// Internal Acessors for ExtendedInfoSourceRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.ExtendedInfoSourceRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoSourceRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoSourceRecoverPoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.ExtendedInfoSourceRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoSourceRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoSourceRecoverPoint = value; } /// Internal Acessors for ExtendedInfoSubTask - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoSubTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoSubTask = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoSubTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoSubTask = value; } /// Internal Acessors for ExtendedInfoTargetRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.ExtendedInfoTargetRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoTargetRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ExtendedInfoTargetRecoverPoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.ExtendedInfoTargetRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoTargetRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ExtendedInfoTargetRecoverPoint = value; } /// Internal Acessors for PolicyId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).PolicyId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).PolicyId = value; } /// Internal Acessors for PolicyName - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.PolicyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).PolicyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).PolicyName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.PolicyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).PolicyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).PolicyName = value; } /// Internal Acessors for ProgressUrl - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.ProgressUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ProgressUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ProgressUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.ProgressUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ProgressUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ProgressUrl = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJob()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJob()); set { {_property = value;} } } /// Internal Acessors for RestoreType - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal.RestoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).RestoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).RestoreType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceInternal.RestoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).RestoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).RestoreType = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type = value; } /// Resource name associated with the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name; } /// /// It indicates the type of Job i.e. Backup:full/log/diff ;Restore:ALR/OLR; Tiering:Backup/Archive ; Management:ConfigureProtection/UnConfigure /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string Operation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).Operation = value ?? null; } + public string Operation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).Operation = value ?? null; } /// It indicates the type of Job i.e. Backup/Restore/Tiering/Management [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string OperationCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).OperationCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).OperationCategory = value ?? null; } + public string OperationCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).OperationCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).OperationCategory = value ?? null; } /// ARM ID of the policy [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).PolicyId; } + public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).PolicyId; } /// Name of the policy [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string PolicyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).PolicyName; } + public string PolicyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).PolicyName; } /// Indicated whether progress is enabled for the job [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public bool? ProgressEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ProgressEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ProgressEnabled = value ?? default(bool); } + public bool? ProgressEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ProgressEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ProgressEnabled = value ?? default(bool); } /// Url which contains job's progress [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ProgressUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).ProgressUrl; } + public string ProgressUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).ProgressUrl; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob _property; /// AzureBackupJobResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJob()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJob()); set => this._property = value; } /// /// It indicates the sub type of operation i.e. in case of Restore it can be ALR/OLR /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string RestoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).RestoreType; } + public string RestoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).RestoreType; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string SourceDataStoreName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SourceDataStoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SourceDataStoreName = value ?? null; } + public string SourceDataStoreName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SourceDataStoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SourceDataStoreName = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointId = value ?? null; } + public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointId = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public global::System.DateTime? SourceRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? SourceRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } /// Resource Group Name of the Datasource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string SourceResourceGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SourceResourceGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SourceResourceGroup = value ?? null; } + public string SourceResourceGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SourceResourceGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SourceResourceGroup = value ?? null; } /// SubscriptionId corresponding to the DataSource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string SourceSubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SourceSubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SourceSubscriptionId = value ?? null; } + public string SourceSubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SourceSubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SourceSubscriptionId = value ?? null; } /// StartTime of the job(in UTC) [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).StartTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).StartTime = value ?? default(global::System.DateTime); } /// Status of the job like InProgress/Success/Failed/Cancelled/SuccessWithWarning [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).Status = value ?? null; } + public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).Status = value ?? null; } /// Subscription Id of the corresponding backup vault [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string SubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SubscriptionId = value ?? null; } + public string SubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SubscriptionId = value ?? null; } /// List of supported actions [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string[] SupportedAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SupportedAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).SupportedAction = value ?? null /* arrayOf */; } + public string[] SupportedAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SupportedAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).SupportedAction = value ?? null /* arrayOf */; } /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointId = value ?? null; } + public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointId = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public global::System.DateTime? TargetRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? TargetRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type; } /// Name of the vault [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string VaultName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).VaultName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)Property).VaultName = value ?? null; } + public string VaultName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).VaultName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobInternal)Property).VaultName = value ?? null; } /// Creates an new instance. public AzureBackupJobResource() @@ -266,7 +266,7 @@ public AzureBackupJobResource() /// AzureBackup Job Resource Class public partial interface IAzureBackupJobResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource { /// Job Activity Id [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -362,8 +362,8 @@ public partial interface IAzureBackupJobResource : ReadOnly = true, Description = @"A List, detailing the errors related to the job", SerializedName = @"errorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[] ErrorDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[] ErrorDetail { get; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -378,8 +378,8 @@ public partial interface IAzureBackupJobResource : ReadOnly = false, Description = @"Job's Additional Details", SerializedName = @"additionalDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } /// State of the Backup Instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -410,8 +410,8 @@ public partial interface IAzureBackupJobResource : ReadOnly = true, Description = @"List of Sub Tasks of the job", SerializedName = @"subTasks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[] ExtendedInfoSubTask { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[] ExtendedInfoSubTask { get; } /// Indicated that whether the job is adhoc(true) or scheduled(false) [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -580,7 +580,7 @@ public partial interface IAzureBackupJobResource : } /// AzureBackup Job Resource Class internal partial interface IAzureBackupJobResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal { /// Job Activity Id string ActivityId { get; set; } @@ -605,13 +605,13 @@ internal partial interface IAzureBackupJobResourceInternal : /// EndTime of the job(in UTC) global::System.DateTime? EndTime { get; set; } /// A List, detailing the errors related to the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[] ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[] ErrorDetail { get; set; } string Etag { get; set; } /// Extended Information about the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo ExtendedInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo ExtendedInfo { get; set; } /// Job's Additional Details - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } /// State of the Backup Instance string ExtendedInfoBackupInstanceState { get; set; } /// Number of bytes transferred @@ -619,11 +619,11 @@ internal partial interface IAzureBackupJobResourceInternal : /// Destination where restore is done string ExtendedInfoRecoveryDestination { get; set; } /// Details of the Source Recovery Point - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails ExtendedInfoSourceRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails ExtendedInfoSourceRecoverPoint { get; set; } /// List of Sub Tasks of the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[] ExtendedInfoSubTask { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[] ExtendedInfoSubTask { get; set; } /// Details of the Target Recovery Point - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails ExtendedInfoTargetRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails ExtendedInfoTargetRecoverPoint { get; set; } /// Indicated that whether the job is adhoc(true) or scheduled(false) bool? IsUserTriggered { get; set; } /// @@ -641,7 +641,7 @@ internal partial interface IAzureBackupJobResourceInternal : /// Url which contains job's progress string ProgressUrl { get; set; } /// AzureBackupJobResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJob Property { get; set; } /// /// It indicates the sub type of operation i.e. in case of Restore it can be ALR/OLR /// diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResource.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResource.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResource.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResource.json.cs index 2494850be4be..d9a956c869a8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResource.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal AzureBackupJobResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJob.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJob.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupJobResource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResourceList.PowerShell.cs similarity index 71% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResourceList.PowerShell.cs index 749d3789a58f..6cb2641b7ec0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResourceList.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureBackupJobResourceList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal AzureBackupJobResourceList(global::System.Collections.IDictionary conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJobResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJobResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,35 @@ internal AzureBackupJobResourceList(global::System.Management.Automation.PSObjec return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJobResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJobResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupJobResourceList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupJobResourceList(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResourceList.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResourceList.TypeConverter.cs index 17657b7b5013..861340200ab8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResourceList.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResourceList.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResourceList.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResourceList.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResourceList.cs index f2aa0216e849..a8729477fa54 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResourceList.cs @@ -1,31 +1,31 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List of AzureBackup Job resources public partial class AzureBackupJobResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResourceList(); /// /// The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource[] _value; /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public AzureBackupJobResourceList() @@ -48,7 +48,7 @@ public AzureBackupJobResourceList() /// List of AzureBackup Job resources public partial interface IAzureBackupJobResourceList : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList { /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -56,16 +56,16 @@ public partial interface IAzureBackupJobResourceList : ReadOnly = false, Description = @"List of resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource[] Value { get; set; } } /// List of AzureBackup Job resources internal partial interface IAzureBackupJobResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResourceList.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResourceList.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResourceList.json.cs index c504e90e5979..8c391815672b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupJobResourceList.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal AzureBackupJobResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProte { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResourceList(json); - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJobResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResourceList(json); + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupJobResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupJobResourceList(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupParams.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupParams.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupParams.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupParams.PowerShell.cs index ec951b5a6b74..5f7cd5422d2d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupParams.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupParams.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureBackupParams partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal AzureBackupParams(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParamsInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParamsInternal)this).BackupType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParamsInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParamsInternal)this).BackupType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,33 @@ internal AzureBackupParams(global::System.Management.Automation.PSObject content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParamsInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParamsInternal)this).BackupType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParamsInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParamsInternal)this).BackupType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParams DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParams DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupParams(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParams DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParams DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupParams(content); } @@ -118,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParams FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParams FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupParams.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupParams.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupParams.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupParams.TypeConverter.cs index f43715fb04ff..a01527dbfcf8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupParams.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupParams.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParams ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParams ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParams).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParams).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupParams.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupParams.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupParams.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupParams.cs index 33b90db1d047..84bc113a9bb0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupParams.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupParams.cs @@ -1,18 +1,18 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup parameters public partial class AzureBackupParams : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParams, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParamsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParams, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParamsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters __backupParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters __backupParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupParameters(); /// Backing field for property. private string _backupType; @@ -23,7 +23,7 @@ public partial class AzureBackupParams : /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal)__backupParameters).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal)__backupParameters).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal)__backupParameters).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal)__backupParameters).ObjectType = value ; } /// Creates an new instance. public AzureBackupParams() @@ -46,7 +46,7 @@ public AzureBackupParams() /// Azure backup parameters public partial interface IAzureBackupParams : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters { /// BackupType ; Full/Incremental etc [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -60,7 +60,7 @@ public partial interface IAzureBackupParams : } /// Azure backup parameters internal partial interface IAzureBackupParamsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal { /// BackupType ; Full/Incremental etc string BackupType { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupParams.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupParams.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupParams.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupParams.json.cs index 67b9f7b95d77..bcb1f4420c91 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupParams.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupParams.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal AzureBackupParams(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Run { return; } - __backupParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupParameters(json); + __backupParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupParameters(json); {_backupType = If( json?.PropertyT("backupType"), out var __jsonBackupType) ? (string)__jsonBackupType : (string)BackupType;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParams. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParams. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParams. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParams. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupParams FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupParams FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupParams(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPoint.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPoint.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPoint.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPoint.PowerShell.cs index c60e4b47ca7a..cfdd97d43dad 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPoint.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPoint.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureBackupRecoveryPoint partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,12 +61,12 @@ internal AzureBackupRecoveryPoint(global::System.Collections.IDictionary content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,34 +79,34 @@ internal AzureBackupRecoveryPoint(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupRecoveryPoint(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryPoint(content); } @@ -116,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPoint.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPoint.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPoint.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPoint.TypeConverter.cs index 9fb878518957..b2d180d6b65e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPoint.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPoint.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPoint.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPoint.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPoint.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPoint.cs index 05725bb5b914..3441f7b37d8e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPoint.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPoint.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup recoveryPoint public partial class AzureBackupRecoveryPoint : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPoint.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPoint.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPoint.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPoint.json.cs index da9c53e07ad6..ea5441b3e8ea 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPoint.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPoint.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -63,15 +63,15 @@ internal AzureBackupRecoveryPoint(Microsoft.Azure.PowerShell.Cmdlets.DataProtect } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint interface - /// is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint interface is polymorphic, + /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs similarity index 54% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs index ee2ed48efb84..fc87c83a51f9 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureBackupRecoveryPointBasedRestoreRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,18 +61,18 @@ internal AzureBackupRecoveryPointBasedRestoreRequest(global::System.Collections. return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -85,40 +85,40 @@ internal AzureBackupRecoveryPointBasedRestoreRequest(global::System.Management.A return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupRecoveryPointBasedRestoreRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryPointBasedRestoreRequest(content); } @@ -129,7 +129,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs index 3e8a1a2718f5..c3d0bfdb7925 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointBasedRestoreRequest.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointBasedRestoreRequest.cs similarity index 63% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointBasedRestoreRequest.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointBasedRestoreRequest.cs index 989f53cb7575..f78a32773663 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointBasedRestoreRequest.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointBasedRestoreRequest.cs @@ -1,24 +1,24 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup recoveryPoint based restore request public partial class AzureBackupRecoveryPointBasedRestoreRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreRequest(); /// Internal Acessors for RestoreTargetInfoRecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal.RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRecoveryOption = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal.RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRecoveryOption = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType = value ; } /// Backing field for property. private string _recoveryPointId; @@ -28,23 +28,23 @@ public partial class AzureBackupRecoveryPointBasedRestoreRequest : /// Gets or sets the restore target information. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo = value ; } /// Type of Datasource object, used to initialize the right inherited type [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RestoreTargetInfoObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoObjectType = value ; } + public string RestoreTargetInfoObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoObjectType = value ; } /// Recovery Option [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRecoveryOption; } + public string RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRecoveryOption; } /// Target Restore region [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RestoreTargetInfoRestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRestoreLocation = value ?? null; } + public string RestoreTargetInfoRestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRestoreLocation = value ?? null; } /// Gets or sets the type of the source data store. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType = value ; } /// /// Creates an new instance. @@ -69,7 +69,7 @@ public AzureBackupRecoveryPointBasedRestoreRequest() /// Azure backup recoveryPoint based restore request public partial interface IAzureBackupRecoveryPointBasedRestoreRequest : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest { [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -82,7 +82,7 @@ public partial interface IAzureBackupRecoveryPointBasedRestoreRequest : } /// Azure backup recoveryPoint based restore request internal partial interface IAzureBackupRecoveryPointBasedRestoreRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal { string RecoveryPointId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointBasedRestoreRequest.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointBasedRestoreRequest.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointBasedRestoreRequest.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointBasedRestoreRequest.json.cs index d6d475c174de..49237b39a338 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointBasedRestoreRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointBasedRestoreRequest.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,22 +58,22 @@ internal AzureBackupRecoveryPointBasedRestoreRequest(Microsoft.Azure.PowerShell. { return; } - __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreRequest(json); + __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreRequest(json); {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequest. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequest + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequest. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequest /// interface is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the /// payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResource.PowerShell.cs similarity index 59% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResource.PowerShell.cs index 429593f788dc..8994c3a23625 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResource.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureBackupRecoveryPointResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,17 +61,17 @@ internal AzureBackupRecoveryPointResource(global::System.Collections.IDictionary return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -84,39 +84,39 @@ internal AzureBackupRecoveryPointResource(global::System.Management.Automation.P return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupRecoveryPointResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryPointResource(content); } @@ -126,7 +126,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResource.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResource.TypeConverter.cs index d3dc876718ef..5f32d6ab3100 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResource.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResource.cs similarity index 60% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResource.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResource.cs index c1b650dfc38f..6f4ca968290f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResource.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResource.cs @@ -1,61 +1,61 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup recoveryPoint resource public partial class AzureBackupRecoveryPointResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResource(); /// Resource Id represents the complete path to the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPoint()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPoint()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type = value; } /// Resource name associated with the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal)Property).ObjectType = value ?? null; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointInternal)Property).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint _property; /// AzureBackupRecoveryPointResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPoint()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPoint()); set => this._property = value; } /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type; } /// Creates an new instance. public AzureBackupRecoveryPointResource() @@ -78,7 +78,7 @@ public AzureBackupRecoveryPointResource() /// Azure backup recoveryPoint resource public partial interface IAzureBackupRecoveryPointResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource { [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -91,11 +91,11 @@ public partial interface IAzureBackupRecoveryPointResource : } /// Azure backup recoveryPoint resource internal partial interface IAzureBackupRecoveryPointResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal { string ObjectType { get; set; } /// AzureBackupRecoveryPointResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint Property { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResource.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResource.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResource.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResource.json.cs index 2e11e56d82d5..314fe084fa99 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResource.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal AzureBackupRecoveryPointResource(Microsoft.Azure.PowerShell.Cmdlets.Dat { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPoint.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPoint.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupRecoveryPointResource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResourceList.PowerShell.cs similarity index 70% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResourceList.PowerShell.cs index fc9a5b687aac..65f63cc62d90 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResourceList.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureBackupRecoveryPointResourceList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal AzureBackupRecoveryPointResourceList(global::System.Collections.IDictio return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,35 @@ internal AzureBackupRecoveryPointResourceList(global::System.Management.Automati return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupRecoveryPointResourceList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryPointResourceList(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResourceList.TypeConverter.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResourceList.TypeConverter.cs index 960108062e3e..ea85c5cbe1a0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResourceList.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -103,14 +103,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResourceList.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResourceList.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResourceList.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResourceList.cs index 678fd3b09d28..a707c0f16fe5 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResourceList.cs @@ -1,31 +1,31 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup recoveryPoint resource list public partial class AzureBackupRecoveryPointResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResourceList(); /// /// The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource[] _value; /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public AzureBackupRecoveryPointResourceList() @@ -48,7 +48,7 @@ public AzureBackupRecoveryPointResourceList() /// Azure backup recoveryPoint resource list public partial interface IAzureBackupRecoveryPointResourceList : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList { /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -56,16 +56,16 @@ public partial interface IAzureBackupRecoveryPointResourceList : ReadOnly = false, Description = @"List of resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource[] Value { get; set; } } /// Azure backup recoveryPoint resource list internal partial interface IAzureBackupRecoveryPointResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResourceList.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResourceList.json.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResourceList.json.cs index 13b2da13218c..e9df31ee4f4f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryPointResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryPointResourceList.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal AzureBackupRecoveryPointResourceList(Microsoft.Azure.PowerShell.Cmdlets { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResourceList(json); - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResourceList(json); + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupRecoveryPointResourceList(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs similarity index 54% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs index e98425e561f7..a9abaeffea3e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureBackupRecoveryTimeBasedRestoreRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,18 +61,18 @@ internal AzureBackupRecoveryTimeBasedRestoreRequest(global::System.Collections.I return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime = (string) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime = (string) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -85,40 +85,40 @@ internal AzureBackupRecoveryTimeBasedRestoreRequest(global::System.Management.Au return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime = (string) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime = (string) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupRecoveryTimeBasedRestoreRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryTimeBasedRestoreRequest(content); } @@ -129,7 +129,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs index 01c89d6d6cf2..a04fc7ce4032 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryTimeBasedRestoreRequest.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryTimeBasedRestoreRequest.cs similarity index 65% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryTimeBasedRestoreRequest.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryTimeBasedRestoreRequest.cs index 6cd172936053..47f5e0237cdb 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryTimeBasedRestoreRequest.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryTimeBasedRestoreRequest.cs @@ -1,24 +1,24 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// AzureBackup RecoveryPointTime Based Restore Request public partial class AzureBackupRecoveryTimeBasedRestoreRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreRequest(); /// Internal Acessors for RestoreTargetInfoRecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal.RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRecoveryOption = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal.RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRecoveryOption = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType = value ; } /// Backing field for property. private string _recoveryPointTime; @@ -29,23 +29,23 @@ public partial class AzureBackupRecoveryTimeBasedRestoreRequest : /// Gets or sets the restore target information. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo = value ; } /// Type of Datasource object, used to initialize the right inherited type [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RestoreTargetInfoObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoObjectType = value ; } + public string RestoreTargetInfoObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoObjectType = value ; } /// Recovery Option [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRecoveryOption; } + public string RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRecoveryOption; } /// Target Restore region [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RestoreTargetInfoRestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRestoreLocation = value ?? null; } + public string RestoreTargetInfoRestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfoRestoreLocation = value ?? null; } /// Gets or sets the type of the source data store. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType = value ; } /// /// Creates an new instance. @@ -70,7 +70,7 @@ public AzureBackupRecoveryTimeBasedRestoreRequest() /// AzureBackup RecoveryPointTime Based Restore Request public partial interface IAzureBackupRecoveryTimeBasedRestoreRequest : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest { /// The recovery time in ISO 8601 format example - 2020-08-14T17:30:00.0000000Z. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -84,7 +84,7 @@ public partial interface IAzureBackupRecoveryTimeBasedRestoreRequest : } /// AzureBackup RecoveryPointTime Based Restore Request internal partial interface IAzureBackupRecoveryTimeBasedRestoreRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal { /// The recovery time in ISO 8601 format example - 2020-08-14T17:30:00.0000000Z. string RecoveryPointTime { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs index b49eeaabe9b8..f2494ae237e4 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal AzureBackupRecoveryTimeBasedRestoreRequest(Microsoft.Azure.PowerShell.C { return; } - __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreRequest(json); + __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreRequest(json); {_recoveryPointTime = If( json?.PropertyT("recoveryPointTime"), out var __jsonRecoveryPointTime) ? (string)__jsonRecoveryPointTime : (string)RecoveryPointTime;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryTimeBasedRestoreRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryTimeBasedRestoreRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupRecoveryTimeBasedRestoreRequest(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRehydrationRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRehydrationRequest.PowerShell.cs similarity index 67% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRehydrationRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRehydrationRequest.PowerShell.cs index 8a7889b4f1a8..11a1e554d9e1 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRehydrationRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRehydrationRequest.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureBackupRehydrationRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,14 +61,14 @@ internal AzureBackupRehydrationRequest(global::System.Collections.IDictionary co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority?) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority?) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -81,36 +81,36 @@ internal AzureBackupRehydrationRequest(global::System.Management.Automation.PSOb return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority?) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority?) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupRehydrationRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRehydrationRequest(content); } @@ -120,7 +120,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRehydrationRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRehydrationRequest.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRehydrationRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRehydrationRequest.TypeConverter.cs index fdb93bb35d38..836d8f4d09a6 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRehydrationRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRehydrationRequest.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRehydrationRequest.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRehydrationRequest.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRehydrationRequest.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRehydrationRequest.cs index 060e8fbd246a..7f104d8c6f69 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRehydrationRequest.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRehydrationRequest.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure Backup Rehydrate Request public partial class AzureBackupRehydrationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequestInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRehydrationRequest.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRehydrationRequest.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRehydrationRequest.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRehydrationRequest.json.cs index fbe907034f23..0dbab3fd65eb 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRehydrationRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRehydrationRequest.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,13 +65,13 @@ internal AzureBackupRehydrationRequest(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRehydrationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRehydrationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupRehydrationRequest(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreRequest.PowerShell.cs similarity index 56% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreRequest.PowerShell.cs index 6dbdb9fe7f8d..5660d59d1094 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreRequest.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureBackupRestoreRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,17 +61,17 @@ internal AzureBackupRestoreRequest(global::System.Collections.IDictionary conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -84,39 +84,39 @@ internal AzureBackupRestoreRequest(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupRestoreRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRestoreRequest(content); } @@ -126,7 +126,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreRequest.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreRequest.TypeConverter.cs index 75924fc4d0ba..e8ce55aa3d0b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreRequest.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreRequest.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreRequest.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreRequest.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreRequest.cs index 2750dc22132f..a4851e2aa314 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreRequest.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreRequest.cs @@ -1,18 +1,18 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup restore request public partial class AzureBackupRestoreRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal { /// Internal Acessors for RestoreTargetInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal.RestoreTargetInfo { get => (this._restoreTargetInfo = this._restoreTargetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBase()); set { {_restoreTargetInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal.RestoreTargetInfo { get => (this._restoreTargetInfo = this._restoreTargetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBase()); set { {_restoreTargetInfo = value;} } } /// Internal Acessors for RestoreTargetInfoRecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal.RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).RecoveryOption = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal.RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).RecoveryOption = value; } /// Backing field for property. private string _objectType; @@ -21,23 +21,23 @@ public partial class AzureBackupRestoreRequest : public string ObjectType { get => this._objectType; set => this._objectType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase _restoreTargetInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase _restoreTargetInfo; /// Gets or sets the restore target information. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase RestoreTargetInfo { get => (this._restoreTargetInfo = this._restoreTargetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBase()); set => this._restoreTargetInfo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase RestoreTargetInfo { get => (this._restoreTargetInfo = this._restoreTargetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBase()); set => this._restoreTargetInfo = value; } /// Type of Datasource object, used to initialize the right inherited type [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string RestoreTargetInfoObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).ObjectType = value ; } + public string RestoreTargetInfoObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).ObjectType = value ; } /// Recovery Option [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).RecoveryOption; } + public string RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).RecoveryOption; } /// Target Restore region [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string RestoreTargetInfoRestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).RestoreLocation = value ?? null; } + public string RestoreTargetInfoRestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)RestoreTargetInfo).RestoreLocation = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType _sourceDataStoreType; @@ -103,7 +103,7 @@ internal partial interface IAzureBackupRestoreRequestInternal { string ObjectType { get; set; } /// Gets or sets the restore target information. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase RestoreTargetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase RestoreTargetInfo { get; set; } /// Type of Datasource object, used to initialize the right inherited type string RestoreTargetInfoObjectType { get; set; } /// Recovery Option diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreRequest.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreRequest.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreRequest.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreRequest.json.cs index 7b56e33ae97d..7cce809b1b1f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreRequest.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,22 +58,22 @@ internal AzureBackupRestoreRequest(Microsoft.Azure.PowerShell.Cmdlets.DataProtec { return; } - {_restoreTargetInfo = If( json?.PropertyT("restoreTargetInfo"), out var __jsonRestoreTargetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBase.FromJson(__jsonRestoreTargetInfo) : RestoreTargetInfo;} + {_restoreTargetInfo = If( json?.PropertyT("restoreTargetInfo"), out var __jsonRestoreTargetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBase.FromJson(__jsonRestoreTargetInfo) : RestoreTargetInfo;} {_objectType = If( json?.PropertyT("objectType"), out var __jsonObjectType) ? (string)__jsonObjectType : (string)ObjectType;} {_sourceDataStoreType = If( json?.PropertyT("sourceDataStoreType"), out var __jsonSourceDataStoreType) ? (string)__jsonSourceDataStoreType : (string)SourceDataStoreType;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest interface - /// is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest interface is polymorphic, + /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { diff --git a/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs new file mode 100644 index 000000000000..d437d3c00c9a --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs @@ -0,0 +1,150 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// AzureBackup Restore with Rehydration Request + [System.ComponentModel.TypeConverter(typeof(AzureBackupRestoreWithRehydrationRequestTypeConverter))] + public partial class AzureBackupRestoreWithRehydrationRequest + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureBackupRestoreWithRehydrationRequest(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AzureBackupRestoreWithRehydrationRequest(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, 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.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureBackupRestoreWithRehydrationRequest(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureBackupRestoreWithRehydrationRequest(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// AzureBackup Restore with Rehydration Request + [System.ComponentModel.TypeConverter(typeof(AzureBackupRestoreWithRehydrationRequestTypeConverter))] + public partial interface IAzureBackupRestoreWithRehydrationRequest + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs index f8e2cf1bcb12..8ab8fa9bd253 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreWithRehydrationRequest.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreWithRehydrationRequest.cs similarity index 66% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreWithRehydrationRequest.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreWithRehydrationRequest.cs index 8d8c5ccd25bb..17c9945debdb 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreWithRehydrationRequest.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreWithRehydrationRequest.cs @@ -1,27 +1,27 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// AzureBackup Restore with Rehydration Request public partial class AzureBackupRestoreWithRehydrationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequest __azureBackupRecoveryPointBasedRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointBasedRestoreRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequest __azureBackupRecoveryPointBasedRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointBasedRestoreRequest(); /// Internal Acessors for RestoreTargetInfoRecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal.RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoRecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoRecoveryOption = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal.RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoRecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoRecoveryOption = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).ObjectType = value ; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RecoveryPointId = value ; } + public string RecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RecoveryPointId = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority _rehydrationPriority; @@ -39,23 +39,23 @@ public partial class AzureBackupRestoreWithRehydrationRequest : /// Gets or sets the restore target information. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfo = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfo = value ; } /// Type of Datasource object, used to initialize the right inherited type [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RestoreTargetInfoObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoObjectType = value ; } + public string RestoreTargetInfoObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoObjectType = value ; } /// Recovery Option [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoRecoveryOption; } + public string RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoRecoveryOption; } /// Target Restore region [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RestoreTargetInfoRestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoRestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoRestoreLocation = value ?? null; } + public string RestoreTargetInfoRestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoRestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfoRestoreLocation = value ?? null; } /// Gets or sets the type of the source data store. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceDataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceDataStoreType = value ; } /// /// Creates an new instance. @@ -80,7 +80,7 @@ public AzureBackupRestoreWithRehydrationRequest() /// AzureBackup Restore with Rehydration Request public partial interface IAzureBackupRestoreWithRehydrationRequest : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequest { /// Priority to be used for rehydration. Values High or Standard [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -102,7 +102,7 @@ public partial interface IAzureBackupRestoreWithRehydrationRequest : } /// AzureBackup Restore with Rehydration Request internal partial interface IAzureBackupRestoreWithRehydrationRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointBasedRestoreRequestInternal { /// Priority to be used for rehydration. Values High or Standard Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority RehydrationPriority { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreWithRehydrationRequest.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreWithRehydrationRequest.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreWithRehydrationRequest.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreWithRehydrationRequest.json.cs index d513759fb189..fbb8f611947b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreWithRehydrationRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRestoreWithRehydrationRequest.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,20 +58,20 @@ internal AzureBackupRestoreWithRehydrationRequest(Microsoft.Azure.PowerShell.Cmd { return; } - __azureBackupRecoveryPointBasedRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRecoveryPointBasedRestoreRequest(json); + __azureBackupRecoveryPointBasedRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRecoveryPointBasedRestoreRequest(json); {_rehydrationPriority = If( json?.PropertyT("rehydrationPriority"), out var __jsonRehydrationPriority) ? (string)__jsonRehydrationPriority : (string)RehydrationPriority;} {_rehydrationRetentionDuration = If( json?.PropertyT("rehydrationRetentionDuration"), out var __jsonRehydrationRetentionDuration) ? (string)__jsonRehydrationRetentionDuration : (string)RehydrationRetentionDuration;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreWithRehydrationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupRestoreWithRehydrationRequest(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRule.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRule.PowerShell.cs similarity index 51% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRule.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRule.PowerShell.cs index f0a88d914ea7..0f29423884d9 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRule.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRule.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureBackupRule partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,20 +61,20 @@ internal AzureBackupRule(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).BackupParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters) content.GetValueForProperty("BackupParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).BackupParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupParametersTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).Trigger = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext) content.GetValueForProperty("Trigger",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).Trigger, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TriggerContextTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).BackupParameterObjectType = (string) content.GetValueForProperty("BackupParameterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).BackupParameterObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).DataStoreObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).TriggerObjectType = (string) content.GetValueForProperty("TriggerObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).TriggerObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).BackupParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters) content.GetValueForProperty("BackupParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).BackupParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).Trigger = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext) content.GetValueForProperty("Trigger",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).Trigger, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TriggerContextTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).BackupParameterObjectType = (string) content.GetValueForProperty("BackupParameterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).BackupParameterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).DataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).TriggerObjectType = (string) content.GetValueForProperty("TriggerObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).TriggerObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -87,42 +87,40 @@ internal AzureBackupRule(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).BackupParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters) content.GetValueForProperty("BackupParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).BackupParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupParametersTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).Trigger = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext) content.GetValueForProperty("Trigger",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).Trigger, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TriggerContextTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).BackupParameterObjectType = (string) content.GetValueForProperty("BackupParameterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).BackupParameterObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).DataStoreObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).TriggerObjectType = (string) content.GetValueForProperty("TriggerObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal)this).TriggerObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).BackupParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters) content.GetValueForProperty("BackupParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).BackupParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).Trigger = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext) content.GetValueForProperty("Trigger",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).Trigger, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TriggerContextTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).BackupParameterObjectType = (string) content.GetValueForProperty("BackupParameterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).BackupParameterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).DataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).TriggerObjectType = (string) content.GetValueForProperty("TriggerObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal)this).TriggerObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRule DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupRule(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRule(content); } @@ -132,7 +130,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRule.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRule.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRule.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRule.TypeConverter.cs index 3f7b3941f674..3279586b4f33 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRule.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRule.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRule.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRule.cs similarity index 66% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRule.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRule.cs index 2771b6e077a4..dc84247dae92 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRule.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRule.cs @@ -1,70 +1,70 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup rule public partial class AzureBackupRule : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRule, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRule, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BasePolicyRule(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BasePolicyRule(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters _backupParameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters _backupParameter; /// BackupParameters base [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters BackupParameter { get => (this._backupParameter = this._backupParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupParameters()); set => this._backupParameter = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters BackupParameter { get => (this._backupParameter = this._backupParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupParameters()); set => this._backupParameter = value; } /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string BackupParameterObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal)BackupParameter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal)BackupParameter).ObjectType = value ?? null; } + public string BackupParameterObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal)BackupParameter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal)BackupParameter).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase _dataStore; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase _dataStore; /// DataStoreInfo base [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBase()); set => this._dataStore = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBase()); set => this._dataStore = value; } /// Type of Datasource object, used to initialize the right inherited type [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DataStoreObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)DataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)DataStore).ObjectType = value ; } + public string DataStoreObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)DataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)DataStore).ObjectType = value ; } /// type of datastore; Operational/Vault/Archive [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes DataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)DataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)DataStore).DataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes DataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)DataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)DataStore).DataStoreType = value ; } /// Internal Acessors for BackupParameter - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal.BackupParameter { get => (this._backupParameter = this._backupParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupParameters()); set { {_backupParameter = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal.BackupParameter { get => (this._backupParameter = this._backupParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupParameters()); set { {_backupParameter = value;} } } /// Internal Acessors for DataStore - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal.DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBase()); set { {_dataStore = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal.DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBase()); set { {_dataStore = value;} } } /// Internal Acessors for Trigger - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRuleInternal.Trigger { get => (this._trigger = this._trigger ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TriggerContext()); set { {_trigger = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRuleInternal.Trigger { get => (this._trigger = this._trigger ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TriggerContext()); set { {_trigger = value;} } } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)__basePolicyRule).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)__basePolicyRule).Name = value ; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)__basePolicyRule).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)__basePolicyRule).Name = value ; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)__basePolicyRule).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)__basePolicyRule).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)__basePolicyRule).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)__basePolicyRule).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext _trigger; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext _trigger; /// Trigger context [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext Trigger { get => (this._trigger = this._trigger ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TriggerContext()); set => this._trigger = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext Trigger { get => (this._trigger = this._trigger ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TriggerContext()); set => this._trigger = value; } /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TriggerObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)Trigger).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)Trigger).ObjectType = value ; } + public string TriggerObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)Trigger).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)Trigger).ObjectType = value ; } /// Creates an new instance. public AzureBackupRule() @@ -87,7 +87,7 @@ public AzureBackupRule() /// Azure backup rule public partial interface IAzureBackupRule : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule { /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -125,20 +125,20 @@ public partial interface IAzureBackupRule : } /// Azure backup rule internal partial interface IAzureBackupRuleInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal { /// BackupParameters base - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters BackupParameter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters BackupParameter { get; set; } /// Type of the specific object - used for deserializing string BackupParameterObjectType { get; set; } /// DataStoreInfo base - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase DataStore { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase DataStore { get; set; } /// Type of Datasource object, used to initialize the right inherited type string DataStoreObjectType { get; set; } /// type of datastore; Operational/Vault/Archive Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes DataStoreType { get; set; } /// Trigger context - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext Trigger { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext Trigger { get; set; } /// Type of the specific object - used for deserializing string TriggerObjectType { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRule.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRule.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRule.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureBackupRule.json.cs index 9b7ff69c4e45..0a688ca7fc78 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRule.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureBackupRule.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,21 +58,21 @@ internal AzureBackupRule(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti { return; } - __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BasePolicyRule(json); - {_backupParameter = If( json?.PropertyT("backupParameters"), out var __jsonBackupParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupParameters.FromJson(__jsonBackupParameters) : BackupParameter;} - {_dataStore = If( json?.PropertyT("dataStore"), out var __jsonDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBase.FromJson(__jsonDataStore) : DataStore;} - {_trigger = If( json?.PropertyT("trigger"), out var __jsonTrigger) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TriggerContext.FromJson(__jsonTrigger) : Trigger;} + __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BasePolicyRule(json); + {_backupParameter = If( json?.PropertyT("backupParameters"), out var __jsonBackupParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupParameters.FromJson(__jsonBackupParameters) : BackupParameter;} + {_dataStore = If( json?.PropertyT("dataStore"), out var __jsonDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBase.FromJson(__jsonDataStore) : DataStore;} + {_trigger = If( json?.PropertyT("trigger"), out var __jsonTrigger) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TriggerContext.FromJson(__jsonTrigger) : Trigger;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupRule(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureOperationalStoreParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureOperationalStoreParameters.PowerShell.cs similarity index 69% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureOperationalStoreParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureOperationalStoreParameters.PowerShell.cs index bbf907355c71..cbc1bc5aeb6a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureOperationalStoreParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureOperationalStoreParameters.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureOperationalStoreParameters partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,14 +61,14 @@ internal AzureOperationalStoreParameters(global::System.Collections.IDictionary return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParametersInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParametersInternal)this).ResourceGroupId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParametersInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParametersInternal)this).ResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -81,36 +81,36 @@ internal AzureOperationalStoreParameters(global::System.Management.Automation.PS return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParametersInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParametersInternal)this).ResourceGroupId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParametersInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParametersInternal)this).ResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureOperationalStoreParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureOperationalStoreParameters(content); } @@ -120,7 +120,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureOperationalStoreParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureOperationalStoreParameters.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureOperationalStoreParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureOperationalStoreParameters.TypeConverter.cs index 9d4f2b7bb1d2..443da1212c0d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureOperationalStoreParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureOperationalStoreParameters.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureOperationalStoreParameters.cs b/src/DataProtection/generated/api/Models/Api202101/AzureOperationalStoreParameters.cs similarity index 72% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureOperationalStoreParameters.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureOperationalStoreParameters.cs index b47b940aae05..77420f4d0246 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureOperationalStoreParameters.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureOperationalStoreParameters.cs @@ -1,31 +1,31 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Parameters for Operational-Tier DataStore public partial class AzureOperationalStoreParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParametersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParametersInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters __dataStoreParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters __dataStoreParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreParameters(); /// type of datastore; Operational/Vault/Archive [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes DataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)__dataStoreParameters).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)__dataStoreParameters).DataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes DataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)__dataStoreParameters).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)__dataStoreParameters).DataStoreType = value ; } /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)__dataStoreParameters).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)__dataStoreParameters).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)__dataStoreParameters).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)__dataStoreParameters).ObjectType = value ; } /// Backing field for property. private string _resourceGroupId; - /// Gets or sets the Resource Group Uri. + /// Gets or sets the Snapshot Resource Group Uri. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] public string ResourceGroupId { get => this._resourceGroupId; set => this._resourceGroupId = value; } @@ -50,13 +50,13 @@ public AzureOperationalStoreParameters() /// Parameters for Operational-Tier DataStore public partial interface IAzureOperationalStoreParameters : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters { - /// Gets or sets the Resource Group Uri. + /// Gets or sets the Snapshot Resource Group Uri. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Gets or sets the Resource Group Uri.", + Description = @"Gets or sets the Snapshot Resource Group Uri.", SerializedName = @"resourceGroupId", PossibleTypes = new [] { typeof(string) })] string ResourceGroupId { get; set; } @@ -64,9 +64,9 @@ public partial interface IAzureOperationalStoreParameters : } /// Parameters for Operational-Tier DataStore internal partial interface IAzureOperationalStoreParametersInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal { - /// Gets or sets the Resource Group Uri. + /// Gets or sets the Snapshot Resource Group Uri. string ResourceGroupId { get; set; } } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureOperationalStoreParameters.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureOperationalStoreParameters.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureOperationalStoreParameters.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureOperationalStoreParameters.json.cs index 9950da468bab..472292a8da98 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureOperationalStoreParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureOperationalStoreParameters.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal AzureOperationalStoreParameters(Microsoft.Azure.PowerShell.Cmdlets.Data { return; } - __dataStoreParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreParameters(json); + __dataStoreParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreParameters(json); {_resourceGroupId = If( json?.PropertyT("resourceGroupId"), out var __jsonResourceGroupId) ? (string)__jsonResourceGroupId : (string)ResourceGroupId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureOperationalStoreParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureOperationalStoreParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureOperationalStoreParameters(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureRetentionRule.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/AzureRetentionRule.PowerShell.cs similarity index 64% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureRetentionRule.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureRetentionRule.PowerShell.cs index c83567293150..841b81c4dc8c 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureRetentionRule.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureRetentionRule.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class AzureRetentionRule partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,15 +61,15 @@ internal AzureRetentionRule(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRuleInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRuleInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRuleInternal)this).Lifecycle = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle[]) content.GetValueForProperty("Lifecycle",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRuleInternal)this).Lifecycle, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SourceLifeCycleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRuleInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRuleInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRuleInternal)this).Lifecycle = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle[]) content.GetValueForProperty("Lifecycle",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRuleInternal)this).Lifecycle, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SourceLifeCycleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,37 +82,35 @@ internal AzureRetentionRule(global::System.Management.Automation.PSObject conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRuleInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRuleInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRuleInternal)this).Lifecycle = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle[]) content.GetValueForProperty("Lifecycle",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRuleInternal)this).Lifecycle, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SourceLifeCycleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRuleInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRuleInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRuleInternal)this).Lifecycle = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle[]) content.GetValueForProperty("Lifecycle",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRuleInternal)this).Lifecycle, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SourceLifeCycleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRule DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureRetentionRule(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureRetentionRule(content); } @@ -122,7 +120,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureRetentionRule.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/AzureRetentionRule.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureRetentionRule.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureRetentionRule.TypeConverter.cs index 960d5080b127..da56dfac8ab2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureRetentionRule.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureRetentionRule.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureRetentionRule.cs b/src/DataProtection/generated/api/Models/Api202101/AzureRetentionRule.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureRetentionRule.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureRetentionRule.cs index 7eb8a13da120..546fc86b4fdc 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureRetentionRule.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureRetentionRule.cs @@ -1,18 +1,18 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure retention rule public partial class AzureRetentionRule : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRule, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRule, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRuleInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BasePolicyRule(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BasePolicyRule(); /// Backing field for property. private bool? _isDefault; @@ -21,16 +21,16 @@ public partial class AzureRetentionRule : public bool? IsDefault { get => this._isDefault; set => this._isDefault = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle[] _lifecycle; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle[] _lifecycle; [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle[] Lifecycle { get => this._lifecycle; set => this._lifecycle = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle[] Lifecycle { get => this._lifecycle; set => this._lifecycle = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)__basePolicyRule).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)__basePolicyRule).Name = value ; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)__basePolicyRule).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)__basePolicyRule).Name = value ; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)__basePolicyRule).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)__basePolicyRule).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)__basePolicyRule).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)__basePolicyRule).ObjectType = value ; } /// Creates an new instance. public AzureRetentionRule() @@ -53,7 +53,7 @@ public AzureRetentionRule() /// Azure retention rule public partial interface IAzureRetentionRule : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule { [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -68,17 +68,17 @@ public partial interface IAzureRetentionRule : ReadOnly = false, Description = @"", SerializedName = @"lifecycles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle[] Lifecycle { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle[] Lifecycle { get; set; } } /// Azure retention rule internal partial interface IAzureRetentionRuleInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal { bool? IsDefault { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle[] Lifecycle { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle[] Lifecycle { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureRetentionRule.json.cs b/src/DataProtection/generated/api/Models/Api202101/AzureRetentionRule.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/AzureRetentionRule.json.cs rename to src/DataProtection/generated/api/Models/Api202101/AzureRetentionRule.json.cs index 47dbcf338610..a4056d12e0e8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureRetentionRule.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/AzureRetentionRule.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,20 +58,20 @@ internal AzureRetentionRule(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Ru { return; } - __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BasePolicyRule(json); + __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BasePolicyRule(json); {_isDefault = If( json?.PropertyT("isDefault"), out var __jsonIsDefault) ? (bool?)__jsonIsDefault : IsDefault;} - {_lifecycle = If( json?.PropertyT("lifecycles"), out var __jsonLifecycles) ? If( __jsonLifecycles as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SourceLifeCycle.FromJson(__u) )) ))() : null : Lifecycle;} + {_lifecycle = If( json?.PropertyT("lifecycles"), out var __jsonLifecycles) ? If( __jsonLifecycles as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SourceLifeCycle.FromJson(__u) )) ))() : null : Lifecycle;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureRetentionRule(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BackupCriteria.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupCriteria.PowerShell.cs index 8033f6eba2c1..c2a37737a904 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupCriteria.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class BackupCriteria partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,12 +61,12 @@ internal BackupCriteria(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,34 +79,32 @@ internal BackupCriteria(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BackupCriteria(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupCriteria(content); } @@ -116,7 +114,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BackupCriteria.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupCriteria.TypeConverter.cs index ad7f97d98d6d..c4305b916a17 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupCriteria.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupCriteria.cs b/src/DataProtection/generated/api/Models/Api202101/BackupCriteria.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupCriteria.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupCriteria.cs index b483d84b7f12..f00f9da97277 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupCriteria.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupCriteria base class public partial class BackupCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteriaInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupCriteria.json.cs b/src/DataProtection/generated/api/Models/Api202101/BackupCriteria.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupCriteria.json.cs index 0b3f5296c70e..b8b412ee0058 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupCriteria.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -63,15 +63,15 @@ internal BackupCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { diff --git a/src/DataProtection/generated/api/Models/Api202101/BackupInstance.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BackupInstance.PowerShell.cs new file mode 100644 index 000000000000..8e30745dbaab --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/BackupInstance.PowerShell.cs @@ -0,0 +1,147 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Backup Instance + [System.ComponentModel.TypeConverter(typeof(BackupInstanceTypeConverter))] + public partial class BackupInstance + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal BackupInstance(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PolicyInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ProtectionStatusDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ObjectType, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackupInstance(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PolicyInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ProtectionStatusDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal)this).ObjectType, 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.DataProtection.Models.Api202101.IBackupInstance DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackupInstance(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackupInstance(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Backup Instance + [System.ComponentModel.TypeConverter(typeof(BackupInstanceTypeConverter))] + public partial interface IBackupInstance + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstance.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BackupInstance.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstance.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupInstance.TypeConverter.cs index a4a2711bcc97..34f0c7939113 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstance.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupInstance.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstance.cs b/src/DataProtection/generated/api/Models/Api202101/BackupInstance.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstance.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupInstance.cs index 4b94a0ffbec0..6262a06de987 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstance.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupInstance.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Backup Instance public partial class BackupInstance : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal { /// Backing field for property. @@ -16,18 +16,18 @@ public partial class BackupInstance : public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState? CurrentProtectionState { get => this._currentProtectionState; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource _dataSourceInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource _dataSourceInfo; /// Gets or sets the data source information. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource DataSourceInfo { get => (this._dataSourceInfo = this._dataSourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Datasource()); set => this._dataSourceInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource DataSourceInfo { get => (this._dataSourceInfo = this._dataSourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Datasource()); set => this._dataSourceInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet _dataSourceSetInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet _dataSourceSetInfo; /// Gets or sets the data source set information. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet DataSourceSetInfo { get => (this._dataSourceSetInfo = this._dataSourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceSet()); set => this._dataSourceSetInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet DataSourceSetInfo { get => (this._dataSourceSetInfo = this._dataSourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSet()); set => this._dataSourceSetInfo = value; } /// Backing field for property. private string _friendlyName; @@ -37,16 +37,16 @@ public partial class BackupInstance : public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } /// Internal Acessors for CurrentProtectionState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal.CurrentProtectionState { get => this._currentProtectionState; set { {_currentProtectionState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal.CurrentProtectionState { get => this._currentProtectionState; set { {_currentProtectionState = value;} } } /// Internal Acessors for ProtectionErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal.ProtectionErrorDetail { get => (this._protectionErrorDetail = this._protectionErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingError()); set { {_protectionErrorDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal.ProtectionErrorDetail { get => (this._protectionErrorDetail = this._protectionErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingError()); set { {_protectionErrorDetail = value;} } } /// Internal Acessors for ProtectionStatus - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal.ProtectionStatus { get => (this._protectionStatus = this._protectionStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ProtectionStatusDetails()); set { {_protectionStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal.ProtectionStatus { get => (this._protectionStatus = this._protectionStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ProtectionStatusDetails()); set { {_protectionStatus = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private string _objectType; @@ -55,25 +55,25 @@ public partial class BackupInstance : public string ObjectType { get => this._objectType; set => this._objectType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo _policyInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo _policyInfo; /// Gets or sets the policy information. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo PolicyInfo { get => (this._policyInfo = this._policyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PolicyInfo()); set => this._policyInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo PolicyInfo { get => (this._policyInfo = this._policyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PolicyInfo()); set => this._policyInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError _protectionErrorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError _protectionErrorDetail; /// Specifies the protection error of the resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError ProtectionErrorDetail { get => (this._protectionErrorDetail = this._protectionErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingError()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError ProtectionErrorDetail { get => (this._protectionErrorDetail = this._protectionErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingError()); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails _protectionStatus; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails _protectionStatus; /// Specifies the protection status of the resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails ProtectionStatus { get => (this._protectionStatus = this._protectionStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ProtectionStatusDetails()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails ProtectionStatus { get => (this._protectionStatus = this._protectionStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ProtectionStatusDetails()); } /// Backing field for property. private string _provisioningState; @@ -108,16 +108,16 @@ public partial interface IBackupInstance : ReadOnly = false, Description = @"Gets or sets the data source information.", SerializedName = @"dataSourceInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource DataSourceInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource DataSourceInfo { get; set; } /// Gets or sets the data source set information. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, ReadOnly = false, Description = @"Gets or sets the data source set information.", SerializedName = @"dataSourceSetInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet DataSourceSetInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet DataSourceSetInfo { get; set; } /// Gets or sets the Backup Instance friendly name. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -140,24 +140,24 @@ public partial interface IBackupInstance : ReadOnly = false, Description = @"Gets or sets the policy information.", SerializedName = @"policyInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo PolicyInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo PolicyInfo { get; set; } /// Specifies the protection error of the resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, ReadOnly = true, Description = @"Specifies the protection error of the resource", SerializedName = @"protectionErrorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError ProtectionErrorDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError ProtectionErrorDetail { get; } /// Specifies the protection status of the resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, ReadOnly = true, Description = @"Specifies the protection status of the resource", SerializedName = @"protectionStatus", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails ProtectionStatus { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails ProtectionStatus { get; } /// /// Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed /// @@ -177,19 +177,19 @@ internal partial interface IBackupInstanceInternal /// Specifies the current protection state of the resource Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState? CurrentProtectionState { get; set; } /// Gets or sets the data source information. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource DataSourceInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource DataSourceInfo { get; set; } /// Gets or sets the data source set information. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet DataSourceSetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet DataSourceSetInfo { get; set; } /// Gets or sets the Backup Instance friendly name. string FriendlyName { get; set; } string ObjectType { get; set; } /// Gets or sets the policy information. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo PolicyInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo PolicyInfo { get; set; } /// Specifies the protection error of the resource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError ProtectionErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError ProtectionErrorDetail { get; set; } /// Specifies the protection status of the resource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails ProtectionStatus { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails ProtectionStatus { get; set; } /// /// Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed /// diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstance.json.cs b/src/DataProtection/generated/api/Models/Api202101/BackupInstance.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstance.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupInstance.json.cs index 042d571ccd2c..1d00a8aee530 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstance.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupInstance.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -59,25 +59,25 @@ internal BackupInstance(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim return; } {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} - {_dataSourceInfo = If( json?.PropertyT("dataSourceInfo"), out var __jsonDataSourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Datasource.FromJson(__jsonDataSourceInfo) : DataSourceInfo;} - {_dataSourceSetInfo = If( json?.PropertyT("dataSourceSetInfo"), out var __jsonDataSourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceSet.FromJson(__jsonDataSourceSetInfo) : DataSourceSetInfo;} - {_policyInfo = If( json?.PropertyT("policyInfo"), out var __jsonPolicyInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PolicyInfo.FromJson(__jsonPolicyInfo) : PolicyInfo;} - {_protectionStatus = If( json?.PropertyT("protectionStatus"), out var __jsonProtectionStatus) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ProtectionStatusDetails.FromJson(__jsonProtectionStatus) : ProtectionStatus;} + {_dataSourceInfo = If( json?.PropertyT("dataSourceInfo"), out var __jsonDataSourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Datasource.FromJson(__jsonDataSourceInfo) : DataSourceInfo;} + {_dataSourceSetInfo = If( json?.PropertyT("dataSourceSetInfo"), out var __jsonDataSourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSet.FromJson(__jsonDataSourceSetInfo) : DataSourceSetInfo;} + {_policyInfo = If( json?.PropertyT("policyInfo"), out var __jsonPolicyInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PolicyInfo.FromJson(__jsonPolicyInfo) : PolicyInfo;} + {_protectionStatus = If( json?.PropertyT("protectionStatus"), out var __jsonProtectionStatus) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ProtectionStatusDetails.FromJson(__jsonProtectionStatus) : ProtectionStatus;} {_currentProtectionState = If( json?.PropertyT("currentProtectionState"), out var __jsonCurrentProtectionState) ? (string)__jsonCurrentProtectionState : (string)CurrentProtectionState;} - {_protectionErrorDetail = If( json?.PropertyT("protectionErrorDetails"), out var __jsonProtectionErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingError.FromJson(__jsonProtectionErrorDetails) : ProtectionErrorDetail;} + {_protectionErrorDetail = If( json?.PropertyT("protectionErrorDetails"), out var __jsonProtectionErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingError.FromJson(__jsonProtectionErrorDetails) : ProtectionErrorDetail;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_objectType = If( json?.PropertyT("objectType"), out var __jsonObjectType) ? (string)__jsonObjectType : (string)ObjectType;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupInstance(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResource.PowerShell.cs similarity index 64% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupInstanceResource.PowerShell.cs index 9f4815303b4c..55ce1effe4b9 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResource.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class BackupInstanceResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,16 +61,16 @@ internal BackupInstanceResource(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -83,38 +83,38 @@ internal BackupInstanceResource(global::System.Management.Automation.PSObject co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BackupInstanceResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupInstanceResource(content); } @@ -124,7 +124,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResource.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupInstanceResource.TypeConverter.cs index 2044fae2dbf5..efb5aa47ca08 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResource.cs b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResource.cs similarity index 63% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResource.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupInstanceResource.cs index 4a71c9068fa4..1cce509f62b7 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResource.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResource.cs @@ -1,55 +1,55 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupInstance Resource public partial class BackupInstanceResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResource(); /// Resource Id represents the complete path to the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type = value; } /// Resource name associated with the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance _property; /// BackupInstanceResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstance()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstance()); set => this._property = value; } /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type; } /// Creates an new instance. public BackupInstanceResource() @@ -72,7 +72,7 @@ public BackupInstanceResource() /// BackupInstance Resource public partial interface IBackupInstanceResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource { /// BackupInstanceResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -80,16 +80,16 @@ public partial interface IBackupInstanceResource : ReadOnly = false, Description = @"BackupInstanceResource properties", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance Property { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance Property { get; set; } } /// BackupInstance Resource internal partial interface IBackupInstanceResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal { /// BackupInstanceResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance Property { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResource.json.cs b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResource.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResource.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupInstanceResource.json.cs index fc83ea798307..ea8a0fd2de73 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResource.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal BackupInstanceResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstance.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstance.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupInstanceResource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResourceList.PowerShell.cs similarity index 71% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupInstanceResourceList.PowerShell.cs index 455237605bb2..9785c6086bbf 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResourceList.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class BackupInstanceResourceList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal BackupInstanceResourceList(global::System.Collections.IDictionary conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,35 @@ internal BackupInstanceResourceList(global::System.Management.Automation.PSObjec return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BackupInstanceResourceList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupInstanceResourceList(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResourceList.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupInstanceResourceList.TypeConverter.cs index c3b25a4af0f4..90ba3bc6a88b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResourceList.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResourceList.cs b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResourceList.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResourceList.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupInstanceResourceList.cs index 900f8bc35251..58839386906b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResourceList.cs @@ -1,31 +1,31 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupInstance Resource list response public partial class BackupInstanceResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResourceList(); /// /// The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource[] _value; /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public BackupInstanceResourceList() @@ -48,7 +48,7 @@ public BackupInstanceResourceList() /// BackupInstance Resource list response public partial interface IBackupInstanceResourceList : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList { /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -56,16 +56,16 @@ public partial interface IBackupInstanceResourceList : ReadOnly = false, Description = @"List of resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource[] Value { get; set; } } /// BackupInstance Resource list response internal partial interface IBackupInstanceResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResourceList.json.cs b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResourceList.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupInstanceResourceList.json.cs index 58c2f1c7ef38..5e728802262c 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstanceResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupInstanceResourceList.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal BackupInstanceResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProte { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResourceList(json); - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResourceList(json); + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupInstanceResourceList(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BackupParameters.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupParameters.PowerShell.cs index d648633eb3cf..52f77eb23876 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupParameters.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class BackupParameters partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,12 +61,12 @@ internal BackupParameters(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,34 +79,32 @@ internal BackupParameters(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BackupParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupParameters(content); } @@ -116,7 +114,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BackupParameters.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupParameters.TypeConverter.cs index 08e92842b64d..86769d4a48ce 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupParameters.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupParameters.cs b/src/DataProtection/generated/api/Models/Api202101/BackupParameters.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupParameters.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupParameters.cs index c5f37041c5b1..bb692f6af375 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupParameters.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupParameters.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupParameters base public partial class BackupParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParametersInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupParameters.json.cs b/src/DataProtection/generated/api/Models/Api202101/BackupParameters.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupParameters.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupParameters.json.cs index 5dd6384218ab..f5b7549e69d8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupParameters.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -63,15 +63,15 @@ internal BackupParameters(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupPolicy.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BackupPolicy.PowerShell.cs similarity index 67% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupPolicy.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupPolicy.PowerShell.cs index a23814373a47..03fbbc9451c8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupPolicy.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupPolicy.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class BackupPolicy partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,14 +61,14 @@ internal BackupPolicy(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicyInternal)this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule[]) content.GetValueForProperty("PolicyRule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicyInternal)this).PolicyRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BasePolicyRuleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicyInternal)this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule[]) content.GetValueForProperty("PolicyRule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicyInternal)this).PolicyRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BasePolicyRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -81,34 +81,34 @@ internal BackupPolicy(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicyInternal)this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule[]) content.GetValueForProperty("PolicyRule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicyInternal)this).PolicyRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BasePolicyRuleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicyInternal)this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule[]) content.GetValueForProperty("PolicyRule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicyInternal)this).PolicyRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BasePolicyRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BackupPolicy(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupPolicy(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupPolicy.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BackupPolicy.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupPolicy.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupPolicy.TypeConverter.cs index 0156127ac26c..93a407c6d3ca 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupPolicy.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupPolicy.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupPolicy.cs b/src/DataProtection/generated/api/Models/Api202101/BackupPolicy.cs similarity index 70% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupPolicy.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupPolicy.cs index ae7e2ea000d6..c3ff82d0b11d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupPolicy.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupPolicy.cs @@ -1,34 +1,34 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Rule based backup policy public partial class BackupPolicy : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicyInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicyInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy __baseBackupPolicy = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicy(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy __baseBackupPolicy = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicy(); /// Type of datasource for the backup management [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string[] DatasourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)__baseBackupPolicy).DatasourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)__baseBackupPolicy).DatasourceType = value ; } + public string[] DatasourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)__baseBackupPolicy).DatasourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)__baseBackupPolicy).DatasourceType = value ; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)__baseBackupPolicy).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)__baseBackupPolicy).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)__baseBackupPolicy).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)__baseBackupPolicy).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule[] _policyRule; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule[] _policyRule; /// /// Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule[] PolicyRule { get => this._policyRule; set => this._policyRule = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule[] PolicyRule { get => this._policyRule; set => this._policyRule = value; } /// Creates an new instance. public BackupPolicy() @@ -51,7 +51,7 @@ public BackupPolicy() /// Rule based backup policy public partial interface IBackupPolicy : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy { /// /// Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc @@ -61,18 +61,18 @@ public partial interface IBackupPolicy : ReadOnly = false, Description = @"Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc", SerializedName = @"policyRules", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRule),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureRetentionRule) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule[] PolicyRule { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRule),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureRetentionRule) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule[] PolicyRule { get; set; } } /// Rule based backup policy internal partial interface IBackupPolicyInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal { /// /// Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc /// - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule[] PolicyRule { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule[] PolicyRule { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupPolicy.json.cs b/src/DataProtection/generated/api/Models/Api202101/BackupPolicy.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupPolicy.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupPolicy.json.cs index a6bd4891a578..5d149a0445e2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupPolicy.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupPolicy.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal BackupPolicy(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime. { return; } - __baseBackupPolicy = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicy(json); - {_policyRule = If( json?.PropertyT("policyRules"), out var __jsonPolicyRules) ? If( __jsonPolicyRules as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BasePolicyRule.FromJson(__u) )) ))() : null : PolicyRule;} + __baseBackupPolicy = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicy(json); + {_policyRule = If( json?.PropertyT("policyRules"), out var __jsonPolicyRules) ? If( __jsonPolicyRules as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BasePolicyRule.FromJson(__u) )) ))() : null : PolicyRule;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupPolicy(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupSchedule.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BackupSchedule.PowerShell.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupSchedule.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupSchedule.PowerShell.cs index 658b8b209c95..5ac97dd0af0d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupSchedule.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupSchedule.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class BackupSchedule partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,12 +61,12 @@ internal BackupSchedule(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupScheduleInternal)this).RepeatingTimeInterval = (string[]) content.GetValueForProperty("RepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupScheduleInternal)this).RepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupScheduleInternal)this).RepeatingTimeInterval = (string[]) content.GetValueForProperty("RepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupScheduleInternal)this).RepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,34 +79,32 @@ internal BackupSchedule(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupScheduleInternal)this).RepeatingTimeInterval = (string[]) content.GetValueForProperty("RepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupScheduleInternal)this).RepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupScheduleInternal)this).RepeatingTimeInterval = (string[]) content.GetValueForProperty("RepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupScheduleInternal)this).RepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BackupSchedule(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupSchedule(content); } @@ -116,7 +114,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupSchedule.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BackupSchedule.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupSchedule.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupSchedule.TypeConverter.cs index 8a1f49976ddf..fcefb8c7f962 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupSchedule.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupSchedule.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupSchedule.cs b/src/DataProtection/generated/api/Models/Api202101/BackupSchedule.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupSchedule.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupSchedule.cs index a9461b2ab105..10d982e88ead 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupSchedule.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupSchedule.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Schedule for backup public partial class BackupSchedule : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupScheduleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupScheduleInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupSchedule.json.cs b/src/DataProtection/generated/api/Models/Api202101/BackupSchedule.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupSchedule.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupSchedule.json.cs index c0d1aaefa02d..52d7220c950a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupSchedule.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupSchedule.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -63,13 +63,13 @@ internal BackupSchedule(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupSchedule(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVault.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BackupVault.PowerShell.cs similarity index 69% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupVault.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupVault.PowerShell.cs index ea16cb576597..0808aaa47090 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVault.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupVault.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class BackupVault partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal BackupVault(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.StorageSettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.StorageSettingTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,33 +80,33 @@ internal BackupVault(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.StorageSettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.StorageSettingTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BackupVault(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupVault(content); } @@ -116,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVault.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BackupVault.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupVault.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupVault.TypeConverter.cs index 4c39ee56508b..3e05d2c39b32 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVault.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupVault.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVault.cs b/src/DataProtection/generated/api/Models/Api202101/BackupVault.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupVault.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupVault.cs index fbbcd58ba076..2d60dca66979 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVault.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupVault.cs @@ -1,15 +1,15 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Backup Vault public partial class BackupVault : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal { /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? _provisioningState; @@ -19,11 +19,11 @@ public partial class BackupVault : public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[] _storageSetting; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[] _storageSetting; /// Storage Settings [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[] StorageSetting { get => this._storageSetting; set => this._storageSetting = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[] StorageSetting { get => this._storageSetting; set => this._storageSetting = value; } /// Creates an new instance. public BackupVault() @@ -45,12 +45,12 @@ public partial interface IBackupVault : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get; } /// Storage Settings [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Storage Settings", SerializedName = @"storageSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[] StorageSetting { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[] StorageSetting { get; set; } } /// Backup Vault @@ -60,7 +60,7 @@ internal partial interface IBackupVaultInternal /// Provisioning state of the BackupVault resource Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get; set; } /// Storage Settings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[] StorageSetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[] StorageSetting { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVault.json.cs b/src/DataProtection/generated/api/Models/Api202101/BackupVault.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupVault.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupVault.json.cs index 489801a23468..5de4b452fc3b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVault.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupVault.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -59,18 +59,18 @@ internal BackupVault(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.J return; } {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} - {_storageSetting = If( json?.PropertyT("storageSettings"), out var __jsonStorageSettings) ? If( __jsonStorageSettings as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.StorageSetting.FromJson(__u) )) ))() : null : StorageSetting;} + {_storageSetting = If( json?.PropertyT("storageSettings"), out var __jsonStorageSettings) ? If( __jsonStorageSettings as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.StorageSetting.FromJson(__u) )) ))() : null : StorageSetting;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupVault(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api202101/BackupVaultResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResource.PowerShell.cs new file mode 100644 index 000000000000..271bece54509 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResource.PowerShell.cs @@ -0,0 +1,157 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Backup Vault Resource + [System.ComponentModel.TypeConverter(typeof(BackupVaultResourceTypeConverter))] + public partial class BackupVaultResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal BackupVaultResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.StorageSettingTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackupVaultResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.StorageSettingTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackupVaultResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackupVaultResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Backup Vault Resource + [System.ComponentModel.TypeConverter(typeof(BackupVaultResourceTypeConverter))] + public partial interface IBackupVaultResource + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResource.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupVaultResource.TypeConverter.cs index 55955261c608..2f46de334f13 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResource.cs b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResource.cs similarity index 59% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResource.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupVaultResource.cs index 7f04c5a34654..8e302e128eb3 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResource.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResource.cs @@ -1,33 +1,33 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Backup Vault Resource public partial class BackupVaultResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResource __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResource __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResource(); /// Optional ETag. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public string ETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).ETag = value ?? null; } + public string ETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).ETag = value ?? null; } /// Resource Id represents the complete path to the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Id; } /// Input Managed Identity Details [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Identity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Identity = value ?? null /* model class */; } /// /// The object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure @@ -35,88 +35,88 @@ public partial class BackupVaultResource : /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; } /// /// A Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; } /// The identityType which can be either SystemAssigned or None [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.FormatTable(Index = 3)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType = value ?? null; } /// Resource location. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.FormatTable(Index = 1)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Location = value ?? null; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Location = value ?? null; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVault()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVault()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Id = value; } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Type = value; } /// Resource name associated with the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.FormatTable(Index = 0)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault _property; /// BackupVaultResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVault()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVault()); set => this._property = value; } /// Provisioning state of the BackupVault resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal)Property).ProvisioningState; } /// Storage Settings [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[] StorageSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal)Property).StorageSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultInternal)Property).StorageSetting = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[] StorageSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal)Property).StorageSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultInternal)Property).StorageSetting = value ; } /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Tag = value ?? null /* model class */; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.FormatTable(Index = 2)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)__dppTrackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)__dppTrackedResource).Type; } /// Creates an new instance. public BackupVaultResource() @@ -139,7 +139,7 @@ public BackupVaultResource() /// Backup Vault Resource public partial interface IBackupVaultResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResource { /// Provisioning state of the BackupVault resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -151,24 +151,24 @@ public partial interface IBackupVaultResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get; } /// Storage Settings [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Storage Settings", SerializedName = @"storageSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[] StorageSetting { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[] StorageSetting { get; set; } } /// Backup Vault Resource internal partial interface IBackupVaultResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal { /// BackupVaultResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVault Property { get; set; } /// Provisioning state of the BackupVault resource Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get; set; } /// Storage Settings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[] StorageSetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[] StorageSetting { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResource.json.cs b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResource.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResource.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupVaultResource.json.cs index c89d0760828a..c8de8c4c18f3 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResource.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal BackupVaultResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R { return; } - __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVault.FromJson(__jsonProperties) : Property;} + __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVault.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupVaultResource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResourceList.PowerShell.cs similarity index 71% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupVaultResourceList.PowerShell.cs index f8a12095d221..e11f56a157e2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResourceList.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class BackupVaultResourceList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal BackupVaultResourceList(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,35 @@ internal BackupVaultResourceList(global::System.Management.Automation.PSObject c return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BackupVaultResourceList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupVaultResourceList(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResourceList.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupVaultResourceList.TypeConverter.cs index 7fa9a201be2a..66fb4f5c36a0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResourceList.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResourceList.cs b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResourceList.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResourceList.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupVaultResourceList.cs index 5849b3326086..19f7b580baab 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResourceList.cs @@ -1,31 +1,31 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List of BackupVault resources public partial class BackupVaultResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResourceList(); /// /// The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource[] _value; /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public BackupVaultResourceList() @@ -48,7 +48,7 @@ public BackupVaultResourceList() /// List of BackupVault resources public partial interface IBackupVaultResourceList : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList { /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -56,16 +56,16 @@ public partial interface IBackupVaultResourceList : ReadOnly = false, Description = @"List of resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource[] Value { get; set; } } /// List of BackupVault resources internal partial interface IBackupVaultResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResourceList.json.cs b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResourceList.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BackupVaultResourceList.json.cs index 65aea2b13ad0..5a51eeb0f484 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BackupVaultResourceList.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal BackupVaultResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProtecti { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResourceList(json); - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResourceList(json); + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupVaultResourceList(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicy.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicy.PowerShell.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicy.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicy.PowerShell.cs index 498e2806734d..9adc50b9dfbf 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicy.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicy.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class BaseBackupPolicy partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal BaseBackupPolicy(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,33 @@ internal BaseBackupPolicy(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BaseBackupPolicy(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BaseBackupPolicy(content); } @@ -118,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicy.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicy.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicy.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicy.TypeConverter.cs index b8f3d623156f..2dc0a9b323b1 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicy.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicy.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicy.cs b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicy.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicy.cs rename to src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicy.cs index fecf2a36a415..fb228fa335b7 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicy.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicy.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupPolicy base public partial class BaseBackupPolicy : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicy.json.cs b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicy.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicy.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicy.json.cs index 79b3da0cde11..1fa716cf0e44 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicy.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicy.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -64,15 +64,15 @@ internal BaseBackupPolicy(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResource.PowerShell.cs similarity index 57% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResource.PowerShell.cs index 745a68d6a15b..b9da88804a20 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResource.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class BaseBackupPolicyResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,18 +61,18 @@ internal BaseBackupPolicyResource(global::System.Collections.IDictionary content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -85,40 +85,40 @@ internal BaseBackupPolicyResource(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BaseBackupPolicyResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BaseBackupPolicyResource(content); } @@ -128,7 +128,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResource.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResource.TypeConverter.cs index dd129bf07c99..5ad3251ab32b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResource.cs b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResource.cs similarity index 62% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResource.cs rename to src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResource.cs index ab3599975af2..a1fb936cfc0c 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResource.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResource.cs @@ -1,65 +1,65 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BaseBackupPolicy resource public partial class BaseBackupPolicyResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResource(); /// Type of datasource for the backup management [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string[] DatasourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)Property).DatasourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)Property).DatasourceType = value ?? null /* arrayOf */; } + public string[] DatasourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)Property).DatasourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)Property).DatasourceType = value ?? null /* arrayOf */; } /// Resource Id represents the complete path to the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicy()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicy()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type = value; } /// Resource name associated with the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Name; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyInternal)Property).ObjectType = value ?? null; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyInternal)Property).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy _property; /// BaseBackupPolicyResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicy()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicy()); set => this._property = value; } /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).SystemData; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)__dppResource).Type; } /// Creates an new instance. public BaseBackupPolicyResource() @@ -82,7 +82,7 @@ public BaseBackupPolicyResource() /// BaseBackupPolicy resource public partial interface IBaseBackupPolicyResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource { /// Type of datasource for the backup management [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -104,14 +104,14 @@ public partial interface IBaseBackupPolicyResource : } /// BaseBackupPolicy resource internal partial interface IBaseBackupPolicyResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal { /// Type of datasource for the backup management string[] DatasourceType { get; set; } string ObjectType { get; set; } /// BaseBackupPolicyResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy Property { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResource.json.cs b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResource.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResource.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResource.json.cs index 8cc1fb22e412..c3768fc66f16 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResource.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal BaseBackupPolicyResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicy.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicy.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BaseBackupPolicyResource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResourceList.PowerShell.cs similarity index 70% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResourceList.PowerShell.cs index cb898dcfcc06..f34122c3e643 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResourceList.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class BaseBackupPolicyResourceList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal BaseBackupPolicyResourceList(global::System.Collections.IDictionary con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,35 @@ internal BaseBackupPolicyResourceList(global::System.Management.Automation.PSObj return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyResourceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BaseBackupPolicyResourceList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BaseBackupPolicyResourceList(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResourceList.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResourceList.TypeConverter.cs index c0c2cdc2f188..9c6f78c1f456 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResourceList.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResourceList.cs b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResourceList.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResourceList.cs rename to src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResourceList.cs index fe77f50bf6fd..5228a8d17033 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResourceList.cs @@ -1,31 +1,31 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List of BaseBackupPolicy resources public partial class BaseBackupPolicyResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResourceList(); /// /// The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource[] _value; /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public BaseBackupPolicyResourceList() @@ -48,7 +48,7 @@ public BaseBackupPolicyResourceList() /// List of BaseBackupPolicy resources public partial interface IBaseBackupPolicyResourceList : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList { /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -56,16 +56,16 @@ public partial interface IBaseBackupPolicyResourceList : ReadOnly = false, Description = @"List of resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource[] Value { get; set; } } /// List of BaseBackupPolicy resources internal partial interface IBaseBackupPolicyResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResourceList.json.cs b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResourceList.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResourceList.json.cs index 9e3bcb3e0c88..8aa352195d7f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BaseBackupPolicyResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BaseBackupPolicyResourceList.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal BaseBackupPolicyResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataPro { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppResourceList(json); - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppResourceList(json); + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BaseBackupPolicyResourceList(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BasePolicyRule.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/BasePolicyRule.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BasePolicyRule.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/BasePolicyRule.PowerShell.cs index 9ff279683c16..9671d66927c3 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BasePolicyRule.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BasePolicyRule.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class BasePolicyRule partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal BasePolicyRule(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,33 @@ internal BasePolicyRule(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BasePolicyRule(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BasePolicyRule(content); } @@ -118,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BasePolicyRule.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/BasePolicyRule.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BasePolicyRule.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/BasePolicyRule.TypeConverter.cs index e064ce3c7ddf..e7fdf857f2be 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BasePolicyRule.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BasePolicyRule.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BasePolicyRule.cs b/src/DataProtection/generated/api/Models/Api202101/BasePolicyRule.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BasePolicyRule.cs rename to src/DataProtection/generated/api/Models/Api202101/BasePolicyRule.cs index edcc4f82f8a8..06841ee63499 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BasePolicyRule.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BasePolicyRule.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BasePolicy Rule public partial class BasePolicyRule : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRuleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRuleInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BasePolicyRule.json.cs b/src/DataProtection/generated/api/Models/Api202101/BasePolicyRule.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/BasePolicyRule.json.cs rename to src/DataProtection/generated/api/Models/Api202101/BasePolicyRule.json.cs index b4684c976277..0fadf8dfab46 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BasePolicyRule.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/BasePolicyRule.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -64,15 +64,15 @@ internal BasePolicyRule(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBasePolicyRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBasePolicyRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityRequest.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityRequest.PowerShell.cs index bd97c81ed1d0..49603a3ca284 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityRequest.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CheckNameAvailabilityRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal CheckNameAvailabilityRequest(global::System.Collections.IDictionary con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequestInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequestInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequestInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequestInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequestInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequestInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequestInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequestInternal)this).Type, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,35 @@ internal CheckNameAvailabilityRequest(global::System.Management.Automation.PSObj return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequestInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequestInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequestInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequestInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequestInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequestInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequestInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequestInternal)this).Type, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CheckNameAvailabilityRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CheckNameAvailabilityRequest(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityRequest.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityRequest.TypeConverter.cs index 415bee529769..e00288235566 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityRequest.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityRequest.cs b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityRequest.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityRequest.cs rename to src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityRequest.cs index c69910dfd1ce..5b1359766341 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityRequest.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityRequest.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// CheckNameAvailability Request public partial class CheckNameAvailabilityRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequestInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityRequest.json.cs b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityRequest.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityRequest.json.cs rename to src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityRequest.json.cs index 64573f64f013..9428b40b47ad 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityRequest.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -64,13 +64,13 @@ internal CheckNameAvailabilityRequest(Microsoft.Azure.PowerShell.Cmdlets.DataPro } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new CheckNameAvailabilityRequest(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityResult.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityResult.PowerShell.cs similarity index 70% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityResult.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityResult.PowerShell.cs index 429f1102ef77..1e5b5b647716 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityResult.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityResult.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CheckNameAvailabilityResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,14 +61,14 @@ internal CheckNameAvailabilityResult(global::System.Collections.IDictionary cont return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResultInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResultInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResultInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResultInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResultInternal)this).Reason, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResultInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResultInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResultInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResultInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResultInternal)this).Reason, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -81,36 +81,36 @@ internal CheckNameAvailabilityResult(global::System.Management.Automation.PSObje return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResultInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResultInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResultInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResultInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResultInternal)this).Reason, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResultInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResultInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResultInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResultInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResultInternal)this).Reason, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CheckNameAvailabilityResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CheckNameAvailabilityResult(content); } @@ -120,7 +120,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityResult.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityResult.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityResult.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityResult.TypeConverter.cs index 02b3bbaad253..d51f6a4a6280 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityResult.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityResult.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityResult.cs b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityResult.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityResult.cs rename to src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityResult.cs index 8b7c82e846e7..c4e64bcdfa10 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityResult.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityResult.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// CheckNameAvailability Result public partial class CheckNameAvailabilityResult : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResultInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityResult.json.cs b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityResult.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityResult.json.cs rename to src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityResult.json.cs index 3b164bd7dd06..05849b0e5b8c 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CheckNameAvailabilityResult.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CheckNameAvailabilityResult.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,13 +65,13 @@ internal CheckNameAvailabilityResult(Microsoft.Azure.PowerShell.Cmdlets.DataProt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new CheckNameAvailabilityResult(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryDisplay.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryDisplay.PowerShell.cs similarity index 68% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryDisplay.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryDisplay.PowerShell.cs index c52263d7ae16..c914611f2816 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryDisplay.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryDisplay.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class ClientDiscoveryDisplay partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,15 +61,15 @@ internal ClientDiscoveryDisplay(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Operation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Provider, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Resource, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,37 +82,37 @@ internal ClientDiscoveryDisplay(global::System.Management.Automation.PSObject co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Operation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Provider, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)this).Resource, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ClientDiscoveryDisplay(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryDisplay(content); } @@ -122,7 +122,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryDisplay.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryDisplay.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryDisplay.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryDisplay.TypeConverter.cs index 758fb8befcdb..dfa16f21910e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryDisplay.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryDisplay.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryDisplay.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryDisplay.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryDisplay.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryDisplay.cs index 2ee4a74f3950..9670ddf010cb 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryDisplay.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryDisplay.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Localized display information of an operation. public partial class ClientDiscoveryDisplay : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryDisplay.json.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryDisplay.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryDisplay.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryDisplay.json.cs index ac8c02a1201e..f253e846e14e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryDisplay.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryDisplay.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -66,13 +66,13 @@ internal ClientDiscoveryDisplay(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ClientDiscoveryDisplay(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForLogSpecification.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForLogSpecification.PowerShell.cs similarity index 70% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForLogSpecification.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForLogSpecification.PowerShell.cs index c07bbac7b176..955abeedc431 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForLogSpecification.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForLogSpecification.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class ClientDiscoveryForLogSpecification partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,14 +61,14 @@ internal ClientDiscoveryForLogSpecification(global::System.Collections.IDictiona return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecificationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecificationInternal)this).Name, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -81,36 +81,36 @@ internal ClientDiscoveryForLogSpecification(global::System.Management.Automation return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecificationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecificationInternal)this).Name, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ClientDiscoveryForLogSpecification(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryForLogSpecification(content); } @@ -120,7 +120,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForLogSpecification.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForLogSpecification.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForLogSpecification.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForLogSpecification.TypeConverter.cs index d02c5a2805f4..2e8b8527f460 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForLogSpecification.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForLogSpecification.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -102,14 +102,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForLogSpecification.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForLogSpecification.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForLogSpecification.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForLogSpecification.cs index 0fa928594a36..fe2b0f814759 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForLogSpecification.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForLogSpecification.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Class to represent shoebox log specification in json client discovery. public partial class ClientDiscoveryForLogSpecification : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecificationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecificationInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForLogSpecification.json.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForLogSpecification.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForLogSpecification.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForLogSpecification.json.cs index 9895b7c38b87..a8db7c400bcf 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForLogSpecification.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForLogSpecification.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,13 +65,13 @@ internal ClientDiscoveryForLogSpecification(Microsoft.Azure.PowerShell.Cmdlets.D } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ClientDiscoveryForLogSpecification(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForProperties.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForProperties.PowerShell.cs similarity index 65% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForProperties.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForProperties.PowerShell.cs index d62fda512a11..267e06df6c35 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForProperties.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForProperties.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class ClientDiscoveryForProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal ClientDiscoveryForProperties(global::System.Collections.IDictionary con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,35 @@ internal ClientDiscoveryForProperties(global::System.Management.Automation.PSObj return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ClientDiscoveryForProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryForProperties(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForProperties.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForProperties.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForProperties.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForProperties.TypeConverter.cs index 265c3f34d619..a2961c8443da 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForProperties.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForProperties.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForProperties.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForProperties.cs similarity index 57% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForProperties.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForProperties.cs index 62b7f1ce1cd7..5a2856d584ce 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForProperties.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForProperties.cs @@ -1,26 +1,26 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Class to represent shoebox properties in json client discovery. public partial class ClientDiscoveryForProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal { /// Internal Acessors for ServiceSpecification - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal.ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForServiceSpecification()); set { {_serviceSpecification = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal.ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForServiceSpecification()); set { {_serviceSpecification = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification _serviceSpecification; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification _serviceSpecification; /// Operation properties. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForServiceSpecification()); set => this._serviceSpecification = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForServiceSpecification()); set => this._serviceSpecification = value; } /// List of log specifications of this operation. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecificationInternal)ServiceSpecification).LogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecificationInternal)ServiceSpecification).LogSpecification = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecificationInternal)ServiceSpecification).LogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecificationInternal)ServiceSpecification).LogSpecification = value ?? null /* arrayOf */; } /// Creates an new instance. public ClientDiscoveryForProperties() @@ -38,8 +38,8 @@ public partial interface IClientDiscoveryForProperties : ReadOnly = false, Description = @"List of log specifications of this operation.", SerializedName = @"logSpecifications", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } } /// Class to represent shoebox properties in json client discovery. @@ -47,9 +47,9 @@ internal partial interface IClientDiscoveryForPropertiesInternal { /// Operation properties. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification ServiceSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification ServiceSpecification { get; set; } /// List of log specifications of this operation. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForProperties.json.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForProperties.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForProperties.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForProperties.json.cs index ff18f660cf7c..6aaa1a24bd07 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForProperties.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForProperties.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,18 +58,18 @@ internal ClientDiscoveryForProperties(Microsoft.Azure.PowerShell.Cmdlets.DataPro { return; } - {_serviceSpecification = If( json?.PropertyT("serviceSpecification"), out var __jsonServiceSpecification) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForServiceSpecification.FromJson(__jsonServiceSpecification) : ServiceSpecification;} + {_serviceSpecification = If( json?.PropertyT("serviceSpecification"), out var __jsonServiceSpecification) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForServiceSpecification.FromJson(__jsonServiceSpecification) : ServiceSpecification;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ClientDiscoveryForProperties(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForServiceSpecification.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForServiceSpecification.PowerShell.cs similarity index 73% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForServiceSpecification.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForServiceSpecification.PowerShell.cs index fa7cc1912e10..0cf767db7ce8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForServiceSpecification.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForServiceSpecification.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class ClientDiscoveryForServiceSpecification partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,12 +61,12 @@ internal ClientDiscoveryForServiceSpecification(global::System.Collections.IDict return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,34 +79,34 @@ internal ClientDiscoveryForServiceSpecification(global::System.Management.Automa return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ClientDiscoveryForServiceSpecification(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryForServiceSpecification(content); } @@ -117,7 +117,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForServiceSpecification.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForServiceSpecification.TypeConverter.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForServiceSpecification.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForServiceSpecification.TypeConverter.cs index 6978c4f39182..8b74865f8d80 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForServiceSpecification.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForServiceSpecification.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -104,14 +104,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForServiceSpecification.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForServiceSpecification.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForServiceSpecification.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForServiceSpecification.cs index f0070822b071..3c42576bda2a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForServiceSpecification.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForServiceSpecification.cs @@ -1,19 +1,19 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Class to represent shoebox service specification in json client discovery. public partial class ClientDiscoveryForServiceSpecification : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecificationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecificationInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[] _logSpecification; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[] _logSpecification; /// List of log specifications of this operation. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[] LogSpecification { get => this._logSpecification; set => this._logSpecification = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[] LogSpecification { get => this._logSpecification; set => this._logSpecification = value; } /// Creates an new instance. public ClientDiscoveryForServiceSpecification() @@ -31,8 +31,8 @@ public partial interface IClientDiscoveryForServiceSpecification : ReadOnly = false, Description = @"List of log specifications of this operation.", SerializedName = @"logSpecifications", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[] LogSpecification { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[] LogSpecification { get; set; } } /// Class to represent shoebox service specification in json client discovery. @@ -40,7 +40,7 @@ internal partial interface IClientDiscoveryForServiceSpecificationInternal { /// List of log specifications of this operation. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[] LogSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[] LogSpecification { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForServiceSpecification.json.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForServiceSpecification.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForServiceSpecification.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForServiceSpecification.json.cs index fc04ecb943ea..520531276103 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryForServiceSpecification.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryForServiceSpecification.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,18 +58,18 @@ internal ClientDiscoveryForServiceSpecification(Microsoft.Azure.PowerShell.Cmdle { return; } - {_logSpecification = If( json?.PropertyT("logSpecifications"), out var __jsonLogSpecifications) ? If( __jsonLogSpecifications as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForLogSpecification.FromJson(__u) )) ))() : null : LogSpecification;} + {_logSpecification = If( json?.PropertyT("logSpecifications"), out var __jsonLogSpecifications) ? If( __jsonLogSpecifications as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForLogSpecification.FromJson(__u) )) ))() : null : LogSpecification;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ClientDiscoveryForServiceSpecification(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryResponse.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryResponse.PowerShell.cs similarity index 70% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryResponse.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryResponse.PowerShell.cs index 4b78620bce78..6fd869ec8123 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryResponse.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryResponse.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class ClientDiscoveryResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal ClientDiscoveryResponse(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponseInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponseInternal)this).NextLink, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponseInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponseInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryValueForSingleApiTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponseInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponseInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponseInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponseInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryValueForSingleApiTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,35 @@ internal ClientDiscoveryResponse(global::System.Management.Automation.PSObject c return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponseInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponseInternal)this).NextLink, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponseInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponseInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryValueForSingleApiTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponseInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponseInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponseInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponseInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryValueForSingleApiTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ClientDiscoveryResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryResponse(content); } @@ -118,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryResponse.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryResponse.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryResponse.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryResponse.TypeConverter.cs index d2a46e4cb521..2d39a0de7315 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryResponse.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryResponse.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryResponse.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryResponse.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryResponse.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryResponse.cs index 029b64ad158f..f11a6b0c956c 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryResponse.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryResponse.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Operations List response which contains list of available APIs. public partial class ClientDiscoveryResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponseInternal { /// Backing field for property. @@ -16,11 +16,11 @@ public partial class ClientDiscoveryResponse : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi[] _value; /// List of available operations. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ClientDiscoveryResponse() @@ -46,8 +46,8 @@ public partial interface IClientDiscoveryResponse : ReadOnly = false, Description = @"List of available operations.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi[] Value { get; set; } } /// Operations List response which contains list of available APIs. @@ -57,7 +57,7 @@ internal partial interface IClientDiscoveryResponseInternal /// Link to the next chunk of Response. string NextLink { get; set; } /// List of available operations. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryResponse.json.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryResponse.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryResponse.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryResponse.json.cs index dcbf2b4b1bcb..4d0dcfc89048 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryResponse.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryResponse.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -59,18 +59,18 @@ internal ClientDiscoveryResponse(Microsoft.Azure.PowerShell.Cmdlets.DataProtecti return; } {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryValueForSingleApi.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryValueForSingleApi.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ClientDiscoveryResponse(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryValueForSingleApi.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryValueForSingleApi.PowerShell.cs new file mode 100644 index 000000000000..785fee74a15e --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryValueForSingleApi.PowerShell.cs @@ -0,0 +1,153 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Available operation details. + [System.ComponentModel.TypeConverter(typeof(ClientDiscoveryValueForSingleApiTypeConverter))] + public partial class ClientDiscoveryValueForSingleApi + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ClientDiscoveryValueForSingleApi(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Origin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ClientDiscoveryValueForSingleApi(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).Origin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ClientDiscoveryValueForSingleApi(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ClientDiscoveryValueForSingleApi(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Available operation details. + [System.ComponentModel.TypeConverter(typeof(ClientDiscoveryValueForSingleApiTypeConverter))] + public partial interface IClientDiscoveryValueForSingleApi + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryValueForSingleApi.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryValueForSingleApi.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryValueForSingleApi.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryValueForSingleApi.TypeConverter.cs index b26c908729a9..e85d6827c06b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryValueForSingleApi.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryValueForSingleApi.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryValueForSingleApi.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryValueForSingleApi.cs similarity index 71% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryValueForSingleApi.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryValueForSingleApi.cs index 0a177e1dd3d7..13c7b93f0005 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryValueForSingleApi.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryValueForSingleApi.cs @@ -1,35 +1,35 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Available operation details. public partial class ClientDiscoveryValueForSingleApi : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay _display; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay _display; /// Contains the localized display information for this particular operation [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryDisplay()); set => this._display = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryDisplay()); set => this._display = value; } /// Description of the operation having details of what operation is about. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)Display).Description = value ?? null; } + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)Display).Description = value ?? null; } /// Operations Name itself. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)Display).Operation = value ?? null; } + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)Display).Operation = value ?? null; } /// Name of the provider for display purposes [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)Display).Provider = value ?? null; } + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)Display).Provider = value ?? null; } /// ResourceType for which this Operation can be performed. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplayInternal)Display).Resource = value ?? null; } + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplayInternal)Display).Resource = value ?? null; } /// Backing field for property. private bool? _isDataAction; @@ -39,13 +39,13 @@ public partial class ClientDiscoveryValueForSingleApi : public bool? IsDataAction { get => this._isDataAction; set => this._isDataAction = value; } /// Internal Acessors for Display - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryDisplay()); set { {_display = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryDisplay()); set { {_display = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForProperties()); set { {_property = value;} } } /// Internal Acessors for ServiceSpecification - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal.ServiceSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecification = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApiInternal.ServiceSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecification = value; } /// Backing field for property. private string _name; @@ -64,15 +64,15 @@ public partial class ClientDiscoveryValueForSingleApi : public string Origin { get => this._origin; set => this._origin = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties _property; /// Properties for the given operation. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForProperties()); set => this._property = value; } /// List of log specifications of this operation. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecificationLogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecificationLogSpecification = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecificationLogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecificationLogSpecification = value ?? null /* arrayOf */; } /// Creates an new instance. public ClientDiscoveryValueForSingleApi() @@ -148,8 +148,8 @@ public partial interface IClientDiscoveryValueForSingleApi : ReadOnly = false, Description = @"List of log specifications of this operation.", SerializedName = @"logSpecifications", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } } /// Available operation details. @@ -157,7 +157,7 @@ internal partial interface IClientDiscoveryValueForSingleApiInternal { /// Contains the localized display information for this particular operation - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay Display { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryDisplay Display { get; set; } /// Description of the operation having details of what operation is about. string DisplayDescription { get; set; } /// Operations Name itself. @@ -175,11 +175,11 @@ internal partial interface IClientDiscoveryValueForSingleApiInternal /// string Origin { get; set; } /// Properties for the given operation. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForProperties Property { get; set; } /// Operation properties. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification ServiceSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForServiceSpecification ServiceSpecification { get; set; } /// List of log specifications of this operation. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryValueForSingleApi.json.cs b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryValueForSingleApi.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryValueForSingleApi.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryValueForSingleApi.json.cs index 5534200704d6..fd52377e1f98 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryValueForSingleApi.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ClientDiscoveryValueForSingleApi.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,8 +58,8 @@ internal ClientDiscoveryValueForSingleApi(Microsoft.Azure.PowerShell.Cmdlets.Dat { return; } - {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryDisplay.FromJson(__jsonDisplay) : Display;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForProperties.FromJson(__jsonProperties) : Property;} + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryDisplay.FromJson(__jsonDisplay) : Display;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ClientDiscoveryForProperties.FromJson(__jsonProperties) : Property;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : IsDataAction;} {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin;} @@ -67,13 +67,13 @@ internal ClientDiscoveryValueForSingleApi(Microsoft.Azure.PowerShell.Cmdlets.Dat } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ClientDiscoveryValueForSingleApi(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CloudError.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/CloudError.PowerShell.cs similarity index 56% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CloudError.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/CloudError.PowerShell.cs index 0e638a18adff..6fe8c525cc02 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CloudError.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CloudError.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CloudError partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,17 +61,17 @@ internal CloudError(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Target, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -84,37 +84,37 @@ internal CloudError(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal)this).Target, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudError(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudError(content); } @@ -124,7 +124,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CloudError.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/CloudError.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CloudError.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/CloudError.TypeConverter.cs index 4cbdad69341b..c3d83825b7a4 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CloudError.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CloudError.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CloudError.cs b/src/DataProtection/generated/api/Models/Api202101/CloudError.cs similarity index 63% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CloudError.cs rename to src/DataProtection/generated/api/Models/Api202101/CloudError.cs index af851724f2d4..f7c371577758 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CloudError.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CloudError.cs @@ -1,57 +1,57 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// An error response from Azure Backup. public partial class CloudError : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudError, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudError, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal { /// The error additional info. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).AdditionalInfo; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Code; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Code; } /// The error details. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Detail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError _error; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError _error; /// The resource management error response. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Error()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Error()); set => this._error = value; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Message; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).AdditionalInfo = value; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Code = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Error()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Error()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Message = value; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Target = value; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Target; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Target; } /// Creates an new instance. public CloudError() @@ -69,8 +69,8 @@ public partial interface ICloudError : ReadOnly = true, Description = @"The error additional info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[] AdditionalInfo { get; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -85,8 +85,8 @@ public partial interface ICloudError : ReadOnly = true, Description = @"The error details.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[] Detail { get; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -110,13 +110,13 @@ internal partial interface ICloudErrorInternal { /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[] Detail { get; set; } /// The resource management error response. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError Error { get; set; } /// The error message. string Message { get; set; } /// The error target. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CloudError.json.cs b/src/DataProtection/generated/api/Models/Api202101/CloudError.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CloudError.json.cs rename to src/DataProtection/generated/api/Models/Api202101/CloudError.json.cs index 47eb1435b9a1..4ca253885c5e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CloudError.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CloudError.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,18 +58,18 @@ internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Js { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Error.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Error.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new CloudError(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOnExpiryOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/CopyOnExpiryOption.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CopyOnExpiryOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/CopyOnExpiryOption.PowerShell.cs index 19ef92d75fdc..9b9bcffd4bae 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOnExpiryOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CopyOnExpiryOption.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CopyOnExpiryOption partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,12 +61,12 @@ internal CopyOnExpiryOption(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,34 +79,32 @@ internal CopyOnExpiryOption(global::System.Management.Automation.PSObject conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOnExpiryOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOnExpiryOption DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CopyOnExpiryOption(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOnExpiryOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOnExpiryOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CopyOnExpiryOption(content); } @@ -116,7 +114,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOnExpiryOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOnExpiryOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOnExpiryOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/CopyOnExpiryOption.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CopyOnExpiryOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/CopyOnExpiryOption.TypeConverter.cs index fbc986c2287d..da098ae1e733 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOnExpiryOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CopyOnExpiryOption.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOnExpiryOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOnExpiryOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOnExpiryOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOnExpiryOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOnExpiryOption.cs b/src/DataProtection/generated/api/Models/Api202101/CopyOnExpiryOption.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CopyOnExpiryOption.cs rename to src/DataProtection/generated/api/Models/Api202101/CopyOnExpiryOption.cs index 534d08deab3a..3636734ca695 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOnExpiryOption.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CopyOnExpiryOption.cs @@ -1,22 +1,22 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Copy on Expiry Option public partial class CopyOnExpiryOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOnExpiryOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOnExpiryOptionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOnExpiryOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOnExpiryOptionInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOption(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOption(); /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)__copyOption).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)__copyOption).ObjectType = value ; } /// Creates an new instance. public CopyOnExpiryOption() @@ -39,13 +39,13 @@ public CopyOnExpiryOption() /// Copy on Expiry Option public partial interface ICopyOnExpiryOption : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption { } /// Copy on Expiry Option internal partial interface ICopyOnExpiryOptionInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal { } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOnExpiryOption.json.cs b/src/DataProtection/generated/api/Models/Api202101/CopyOnExpiryOption.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CopyOnExpiryOption.json.cs rename to src/DataProtection/generated/api/Models/Api202101/CopyOnExpiryOption.json.cs index b9ef5d0d98e4..7640fb67d9cc 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOnExpiryOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CopyOnExpiryOption.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,18 +58,18 @@ internal CopyOnExpiryOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Ru { return; } - __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOption(json); + __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOption(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOnExpiryOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOnExpiryOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOnExpiryOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOnExpiryOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOnExpiryOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOnExpiryOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new CopyOnExpiryOption(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/CopyOption.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CopyOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/CopyOption.PowerShell.cs index a261c64a7b18..73e63fbcbd41 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CopyOption.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CopyOption partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,12 +61,12 @@ internal CopyOption(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,32 +79,32 @@ internal CopyOption(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CopyOption(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CopyOption(content); } @@ -114,7 +114,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/CopyOption.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CopyOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/CopyOption.TypeConverter.cs index 252bec448521..be7059349d07 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CopyOption.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOption.cs b/src/DataProtection/generated/api/Models/Api202101/CopyOption.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CopyOption.cs rename to src/DataProtection/generated/api/Models/Api202101/CopyOption.cs index d52189c4f3a9..8e9f01785648 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOption.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CopyOption.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Options to copy public partial class CopyOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOption.json.cs b/src/DataProtection/generated/api/Models/Api202101/CopyOption.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CopyOption.json.cs rename to src/DataProtection/generated/api/Models/Api202101/CopyOption.json.cs index f348f0bbc585..588c81569fe4 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CopyOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CopyOption.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -63,15 +63,15 @@ internal CopyOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption interface is polymorphic, - /// and the precise model class that will get deserialized is determined at runtime based on the payload. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption interface is polymorphic, and + /// the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CustomCopyOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/CustomCopyOption.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CustomCopyOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/CustomCopyOption.PowerShell.cs index 8101dc415167..1146139fe2fe 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CustomCopyOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CustomCopyOption.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class CustomCopyOption partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal CustomCopyOption(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOptionInternal)this).Duration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,33 @@ internal CustomCopyOption(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOptionInternal)this).Duration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOption DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CustomCopyOption(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CustomCopyOption(content); } @@ -118,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CustomCopyOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/CustomCopyOption.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CustomCopyOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/CustomCopyOption.TypeConverter.cs index acb8c5d523ae..04ea39383935 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CustomCopyOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CustomCopyOption.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CustomCopyOption.cs b/src/DataProtection/generated/api/Models/Api202101/CustomCopyOption.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CustomCopyOption.cs rename to src/DataProtection/generated/api/Models/Api202101/CustomCopyOption.cs index 381a777872f4..cce8dd592add 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CustomCopyOption.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CustomCopyOption.cs @@ -1,18 +1,18 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Duration based custom options to copy public partial class CustomCopyOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOptionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOptionInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOption(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOption(); /// Backing field for property. private string _duration; @@ -23,7 +23,7 @@ public partial class CustomCopyOption : /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)__copyOption).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)__copyOption).ObjectType = value ; } /// Creates an new instance. public CustomCopyOption() @@ -46,7 +46,7 @@ public CustomCopyOption() /// Duration based custom options to copy public partial interface ICustomCopyOption : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption { /// Data copied after given timespan [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -60,7 +60,7 @@ public partial interface ICustomCopyOption : } /// Duration based custom options to copy internal partial interface ICustomCopyOptionInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal { /// Data copied after given timespan string Duration { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/CustomCopyOption.json.cs b/src/DataProtection/generated/api/Models/Api202101/CustomCopyOption.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/CustomCopyOption.json.cs rename to src/DataProtection/generated/api/Models/Api202101/CustomCopyOption.json.cs index 3c037d0bae7c..7f39d523c740 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/CustomCopyOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/CustomCopyOption.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,19 +58,19 @@ internal CustomCopyOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt { return; } - __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOption(json); + __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOption(json); {_duration = If( json?.PropertyT("duration"), out var __jsonDuration) ? (string)__jsonDuration : (string)Duration;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICustomCopyOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICustomCopyOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new CustomCopyOption(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreInfoBase.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/DataStoreInfoBase.PowerShell.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreInfoBase.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/DataStoreInfoBase.PowerShell.cs index 18ce664cefcc..16e3f93e19b2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreInfoBase.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DataStoreInfoBase.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class DataStoreInfoBase partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal DataStoreInfoBase(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,33 @@ internal DataStoreInfoBase(global::System.Management.Automation.PSObject content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataStoreInfoBase(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataStoreInfoBase(content); } @@ -118,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreInfoBase.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/DataStoreInfoBase.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreInfoBase.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/DataStoreInfoBase.TypeConverter.cs index a9ae0acf95c2..aee2888695ef 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreInfoBase.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DataStoreInfoBase.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreInfoBase.cs b/src/DataProtection/generated/api/Models/Api202101/DataStoreInfoBase.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreInfoBase.cs rename to src/DataProtection/generated/api/Models/Api202101/DataStoreInfoBase.cs index 720fce5d5d90..8f713e56ca05 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreInfoBase.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DataStoreInfoBase.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// DataStoreInfo base public partial class DataStoreInfoBase : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreInfoBase.json.cs b/src/DataProtection/generated/api/Models/Api202101/DataStoreInfoBase.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreInfoBase.json.cs rename to src/DataProtection/generated/api/Models/Api202101/DataStoreInfoBase.json.cs index 7e67574beb92..6493aaf30e19 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreInfoBase.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DataStoreInfoBase.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -64,13 +64,13 @@ internal DataStoreInfoBase(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DataStoreInfoBase(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/DataStoreParameters.PowerShell.cs similarity index 73% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/DataStoreParameters.PowerShell.cs index 6edf9d6392dd..f07b053e32d9 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DataStoreParameters.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class DataStoreParameters partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal DataStoreParameters(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,35 +80,33 @@ internal DataStoreParameters(global::System.Management.Automation.PSObject conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataStoreParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataStoreParameters(content); } @@ -118,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/DataStoreParameters.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/DataStoreParameters.TypeConverter.cs index 62d17931d330..e99195c62d44 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DataStoreParameters.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreParameters.cs b/src/DataProtection/generated/api/Models/Api202101/DataStoreParameters.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreParameters.cs rename to src/DataProtection/generated/api/Models/Api202101/DataStoreParameters.cs index b8070b366d52..a91d6b4e35a3 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreParameters.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DataStoreParameters.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Parameters for DataStore public partial class DataStoreParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParametersInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreParameters.json.cs b/src/DataProtection/generated/api/Models/Api202101/DataStoreParameters.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreParameters.json.cs rename to src/DataProtection/generated/api/Models/Api202101/DataStoreParameters.json.cs index dc2dbd008deb..396d0c32f668 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DataStoreParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DataStoreParameters.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -64,15 +64,15 @@ internal DataStoreParameters(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters interface is - /// polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters interface is polymorphic, + /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/Datasource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/Datasource.PowerShell.cs similarity index 61% rename from src/DataProtection/generated/api/Models/Api20210201Preview/Datasource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/Datasource.PowerShell.cs index 507253778dc3..eec305d32915 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/Datasource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/Datasource.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class Datasource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,18 +61,18 @@ internal Datasource(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceUri, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -85,38 +85,38 @@ internal Datasource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal)this).ResourceUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal)this).ResourceUri, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Datasource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Datasource(content); } @@ -126,7 +126,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/Datasource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/Datasource.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/Datasource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/Datasource.TypeConverter.cs index 0eaf4996195a..064392186ef0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/Datasource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/Datasource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/Datasource.cs b/src/DataProtection/generated/api/Models/Api202101/Datasource.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210201Preview/Datasource.cs rename to src/DataProtection/generated/api/Models/Api202101/Datasource.cs index e8f624674cd8..4bf6e037bb6e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/Datasource.cs +++ b/src/DataProtection/generated/api/Models/Api202101/Datasource.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Datasource to be backed up public partial class Datasource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/Datasource.json.cs b/src/DataProtection/generated/api/Models/Api202101/Datasource.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/Datasource.json.cs rename to src/DataProtection/generated/api/Models/Api202101/Datasource.json.cs index 4a63868c5e42..e2f846b1d957 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/Datasource.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/Datasource.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -69,13 +69,13 @@ internal Datasource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new Datasource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DatasourceSet.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/DatasourceSet.PowerShell.cs similarity index 60% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DatasourceSet.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/DatasourceSet.PowerShell.cs index 0018ef585c43..48431ccb081f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DatasourceSet.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DatasourceSet.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class DatasourceSet partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,18 +61,18 @@ internal DatasourceSet(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).DatasourceType = (string) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).DatasourceType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).DatasourceType = (string) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).DatasourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceUri, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -85,40 +85,38 @@ internal DatasourceSet(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).DatasourceType = (string) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).DatasourceType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal)this).ResourceUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).DatasourceType = (string) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).DatasourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal)this).ResourceUri, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DatasourceSet(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatasourceSet(content); } @@ -128,7 +126,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DatasourceSet.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/DatasourceSet.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DatasourceSet.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/DatasourceSet.TypeConverter.cs index ce681cc994ac..191d03dc6012 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DatasourceSet.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DatasourceSet.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DatasourceSet.cs b/src/DataProtection/generated/api/Models/Api202101/DatasourceSet.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DatasourceSet.cs rename to src/DataProtection/generated/api/Models/Api202101/DatasourceSet.cs index 5a4d713766ed..d87fc19afba7 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DatasourceSet.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DatasourceSet.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// DatasourceSet details of datasource to be backed up public partial class DatasourceSet : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSetInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSetInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DatasourceSet.json.cs b/src/DataProtection/generated/api/Models/Api202101/DatasourceSet.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DatasourceSet.json.cs rename to src/DataProtection/generated/api/Models/Api202101/DatasourceSet.json.cs index ee875cf10f2a..39467afca401 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DatasourceSet.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DatasourceSet.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -69,13 +69,13 @@ internal DatasourceSet(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DatasourceSet(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/Day.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/Day.PowerShell.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20210201Preview/Day.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/Day.PowerShell.cs index 6388630ed0e9..fd24c8ada882 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/Day.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/Day.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class Day partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal Day(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDayInternal)this).Date = (int?) content.GetValueForProperty("Date",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDayInternal)this).Date, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDayInternal)this).IsLast = (bool?) content.GetValueForProperty("IsLast",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDayInternal)this).IsLast, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDayInternal)this).Date = (int?) content.GetValueForProperty("Date",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDayInternal)this).Date, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDayInternal)this).IsLast = (bool?) content.GetValueForProperty("IsLast",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDayInternal)this).IsLast, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,33 +80,33 @@ internal Day(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDayInternal)this).Date = (int?) content.GetValueForProperty("Date",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDayInternal)this).Date, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDayInternal)this).IsLast = (bool?) content.GetValueForProperty("IsLast",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDayInternal)this).IsLast, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDayInternal)this).Date = (int?) content.GetValueForProperty("Date",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDayInternal)this).Date, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDayInternal)this).IsLast = (bool?) content.GetValueForProperty("IsLast",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDayInternal)this).IsLast, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Day(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Day(content); } @@ -116,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/Day.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/Day.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/Day.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/Day.TypeConverter.cs index c40bba803744..5ded0d3b2d52 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/Day.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/Day.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/Day.cs b/src/DataProtection/generated/api/Models/Api202101/Day.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/Day.cs rename to src/DataProtection/generated/api/Models/Api202101/Day.cs index 4cf9652c5eac..b63ae265e1f7 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/Day.cs +++ b/src/DataProtection/generated/api/Models/Api202101/Day.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Day of the week public partial class Day : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDayInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDayInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/Day.json.cs b/src/DataProtection/generated/api/Models/Api202101/Day.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/Day.json.cs rename to src/DataProtection/generated/api/Models/Api202101/Day.json.cs index 63e63399833b..ccba21fbda1f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/Day.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/Day.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -64,13 +64,13 @@ internal Day(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.Json } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new Day(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DeleteOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/DeleteOption.PowerShell.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DeleteOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/DeleteOption.PowerShell.cs index f0eece732c21..d6e438845567 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DeleteOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DeleteOption.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,7 +48,7 @@ public partial class DeleteOption partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -61,13 +61,13 @@ internal DeleteOption(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -80,33 +80,33 @@ internal DeleteOption(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DeleteOption(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DeleteOption(content); } @@ -116,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DeleteOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/DeleteOption.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DeleteOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/DeleteOption.TypeConverter.cs index 3984912c791f..aac257606b2d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DeleteOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DeleteOption.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DeleteOption.cs b/src/DataProtection/generated/api/Models/Api202101/DeleteOption.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DeleteOption.cs rename to src/DataProtection/generated/api/Models/Api202101/DeleteOption.cs index 2604f4a13850..3b1f143d58dc 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DeleteOption.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DeleteOption.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Delete Option public partial class DeleteOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DeleteOption.json.cs b/src/DataProtection/generated/api/Models/Api202101/DeleteOption.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DeleteOption.json.cs rename to src/DataProtection/generated/api/Models/Api202101/DeleteOption.json.cs index a23f4c4c245d..1b09cca4f148 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DeleteOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DeleteOption.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -64,15 +64,15 @@ internal DeleteOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption interface is polymorphic, - /// and the precise model class that will get deserialized is determined at runtime based on the payload. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption interface is polymorphic, and + /// the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppIdentityDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/DppIdentityDetails.PowerShell.cs similarity index 72% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppIdentityDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/DppIdentityDetails.PowerShell.cs index 6552c7373152..95867588f289 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppIdentityDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppIdentityDetails.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,35 +48,33 @@ public partial class DppIdentityDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppIdentityDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppIdentityDetails(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -89,14 +87,14 @@ internal DppIdentityDetails(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)this).PrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)this).TenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)this).Type, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -109,9 +107,9 @@ internal DppIdentityDetails(global::System.Management.Automation.PSObject conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)this).PrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)this).TenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)this).Type, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -120,7 +118,7 @@ internal DppIdentityDetails(global::System.Management.Automation.PSObject conten /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppIdentityDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/DppIdentityDetails.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppIdentityDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/DppIdentityDetails.TypeConverter.cs index c2e61e8b0fe6..fff1dd76fd08 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppIdentityDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppIdentityDetails.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppIdentityDetails.cs b/src/DataProtection/generated/api/Models/Api202101/DppIdentityDetails.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppIdentityDetails.cs rename to src/DataProtection/generated/api/Models/Api202101/DppIdentityDetails.cs index 390b0873669e..c3a0b73fe7e4 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppIdentityDetails.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppIdentityDetails.cs @@ -1,18 +1,18 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Identity details public partial class DppIdentityDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal { /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } /// Internal Acessors for TenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } /// Backing field for property. private string _principalId; diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppIdentityDetails.json.cs b/src/DataProtection/generated/api/Models/Api202101/DppIdentityDetails.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppIdentityDetails.json.cs rename to src/DataProtection/generated/api/Models/Api202101/DppIdentityDetails.json.cs index 9b5c6b4b537b..ef4d1f5d423a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppIdentityDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppIdentityDetails.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,13 +65,13 @@ internal DppIdentityDetails(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppIdentityDetails(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/DppResource.PowerShell.cs similarity index 67% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/DppResource.PowerShell.cs index 7f1267e4af38..fd09fab227d0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppResource.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,33 +48,33 @@ public partial class DppResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppResource(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -87,15 +87,15 @@ internal DppResource(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -108,10 +108,10 @@ internal DppResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); AfterDeserializePSObject(content); } @@ -120,7 +120,7 @@ internal DppResource(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/DppResource.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/DppResource.TypeConverter.cs index 02721405484c..8a5298ea1c24 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppResource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResource.cs b/src/DataProtection/generated/api/Models/Api202101/DppResource.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppResource.cs rename to src/DataProtection/generated/api/Models/Api202101/DppResource.cs index d9871c7a1af0..2b47ce8451e9 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResource.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppResource.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Resource class public partial class DppResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal { /// Backing field for property. @@ -16,16 +16,16 @@ public partial class DppResource : public string Id { get => this._id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; @@ -35,11 +35,11 @@ public partial class DppResource : public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData _systemData; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData _systemData; /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemData()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemData()); } /// Backing field for property. private string _type; @@ -82,8 +82,8 @@ public partial interface IDppResource : ReadOnly = true, Description = @"Metadata pertaining to creation and last modification of the resource.", SerializedName = @"systemData", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData SystemData { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData SystemData { get; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// @@ -105,7 +105,7 @@ internal partial interface IDppResourceInternal /// Resource name associated with the resource. string Name { get; set; } /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData SystemData { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData SystemData { get; set; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResource.json.cs b/src/DataProtection/generated/api/Models/Api202101/DppResource.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppResource.json.cs rename to src/DataProtection/generated/api/Models/Api202101/DppResource.json.cs index 6d24a20560fc..edbeb5c0c44c 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppResource.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -61,18 +61,18 @@ internal DppResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.J {_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;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemData.FromJson(__jsonSystemData) : SystemData;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemData.FromJson(__jsonSystemData) : SystemData;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppResource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/DppResourceList.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/DppResourceList.PowerShell.cs index fe82322aea8d..a4e4b46a98bb 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppResourceList.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,35 +48,33 @@ public partial class DppResourceList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppResourceList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppResourceList(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -89,12 +87,12 @@ internal DppResourceList(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,7 +105,7 @@ internal DppResourceList(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -116,7 +114,7 @@ internal DppResourceList(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/DppResourceList.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/DppResourceList.TypeConverter.cs index 2109e1c328c7..a8caa55fa096 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppResourceList.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResourceList.cs b/src/DataProtection/generated/api/Models/Api202101/DppResourceList.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppResourceList.cs rename to src/DataProtection/generated/api/Models/Api202101/DppResourceList.cs index 5cbf536cc6d0..b2e83e470081 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppResourceList.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// ListResource public partial class DppResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceListInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResourceList.json.cs b/src/DataProtection/generated/api/Models/Api202101/DppResourceList.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api202101/DppResourceList.json.cs index dea7068fcce9..af712219dd55 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppResourceList.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -63,13 +63,13 @@ internal DppResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppResourceList(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResource.PowerShell.cs similarity index 50% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/DppTrackedResource.PowerShell.cs index 4e281e752fa5..aea5f171b3c9 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResource.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -47,35 +47,33 @@ public partial class DppTrackedResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppTrackedResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppTrackedResource(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -88,22 +86,22 @@ internal DppTrackedResource(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -116,17 +114,17 @@ internal DppTrackedResource(global::System.Management.Automation.PSObject conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -135,7 +133,7 @@ internal DppTrackedResource(global::System.Management.Automation.PSObject conten /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResource.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/DppTrackedResource.TypeConverter.cs index fd9c3654da37..6bfb7c56a93d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResource.cs b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResource.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResource.cs rename to src/DataProtection/generated/api/Models/Api202101/DppTrackedResource.cs index befa51d49add..1c27e8ce37ed 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResource.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResource.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class DppTrackedResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal { /// Backing field for property. @@ -22,28 +22,28 @@ public partial class DppTrackedResource : public string Id { get => this._id; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails _identity; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails _identity; /// Input Managed Identity Details [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetails()); set => this._identity = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetails()); set => this._identity = value; } /// /// The object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure /// resource. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).PrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).PrincipalId; } /// /// A Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).TenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).TenantId; } /// The identityType which can be either SystemAssigned or None [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).Type = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).Type = value ?? null; } /// Backing field for property. private string _location; @@ -53,25 +53,25 @@ public partial class DppTrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetails()); set { {_identity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetails()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).PrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).TenantId = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; @@ -81,18 +81,18 @@ public partial class DppTrackedResource : public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData _systemData; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData _systemData; /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemData()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemData()); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResourceTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResourceTags()); set => this._tag = value; } /// Backing field for property. private string _type; @@ -179,16 +179,16 @@ public partial interface IDppTrackedResource : ReadOnly = true, Description = @"Metadata pertaining to creation and last modification of the resource.", SerializedName = @"systemData", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData SystemData { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData SystemData { get; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags Tag { get; set; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// @@ -209,7 +209,7 @@ internal partial interface IDppTrackedResourceInternal /// Resource Id represents the complete path to the resource. string Id { get; set; } /// Input Managed Identity Details - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails Identity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails Identity { get; set; } /// /// The object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure /// resource. @@ -226,9 +226,9 @@ internal partial interface IDppTrackedResourceInternal /// Resource name associated with the resource. string Name { get; set; } /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData SystemData { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData SystemData { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags Tag { get; set; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResource.json.cs b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResource.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResource.json.cs rename to src/DataProtection/generated/api/Models/Api202101/DppTrackedResource.json.cs index c56f3c357235..536756e69218 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResource.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -57,25 +57,25 @@ internal DppTrackedResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Ru { return; } - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetails.FromJson(__jsonIdentity) : Identity;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetails.FromJson(__jsonIdentity) : Identity;} {_eTag = If( json?.PropertyT("eTag"), out var __jsonETag) ? (string)__jsonETag : (string)ETag;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResourceTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResourceTags.FromJson(__jsonTags) : Tag;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemData.FromJson(__jsonSystemData) : SystemData;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SystemData.FromJson(__jsonSystemData) : SystemData;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppTrackedResource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceList.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceList.PowerShell.cs index fe05bf6dc3eb..acc69c33a4d6 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceList.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -47,35 +47,35 @@ public partial class DppTrackedResourceList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppTrackedResourceList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppTrackedResourceList(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -88,12 +88,12 @@ internal DppTrackedResourceList(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -106,7 +106,7 @@ internal DppTrackedResourceList(global::System.Management.Automation.PSObject co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -115,7 +115,7 @@ internal DppTrackedResourceList(global::System.Management.Automation.PSObject co /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceList.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceList.TypeConverter.cs index 1989bd1d3096..c2f8b4fedb4a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceList.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceList.cs b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceList.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceList.cs rename to src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceList.cs index 1bdfc7c87c7f..dedea8012b3c 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceList.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class DppTrackedResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceListInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceList.json.cs b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceList.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceList.json.cs index 51cfa3738058..60971b560bd8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceList.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -62,13 +62,13 @@ internal DppTrackedResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppTrackedResourceList(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.PowerShell.cs index 8f5b1932bd26..455d9719ffb7 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,35 +48,35 @@ public partial class DppTrackedResourceTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppTrackedResourceTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppTrackedResourceTags(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -95,7 +95,7 @@ internal DppTrackedResourceTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -118,7 +118,7 @@ internal DppTrackedResourceTags(global::System.Management.Automation.PSObject co /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.TypeConverter.cs index 577707961c46..2c5abeaaacfa 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.cs b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.cs rename to src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.cs index eadc032b8516..2773f70666ee 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Resource tags. public partial class DppTrackedResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTagsInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.dictionary.cs b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.dictionary.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.dictionary.cs rename to src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.dictionary.cs index 1027b0fa3c34..ee6f4bbd496a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,6 +65,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppTrackedResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.json.cs b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.json.cs rename to src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.json.cs index f9bd29906e84..1c50c3b1e17f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppTrackedResourceTags.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppTrackedResourceTags.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -64,13 +64,13 @@ internal DppTrackedResourceTags(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppTrackedResourceTags(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequest.PowerShell.cs similarity index 55% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequest.PowerShell.cs index 58b19623bc1d..fce26de621ae 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequest.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -47,35 +47,33 @@ public partial class DppWorkerRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppWorkerRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppWorkerRequest(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -88,18 +86,18 @@ internal DppWorkerRequest(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestHeadersTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestParametersTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestHeadersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -112,13 +110,13 @@ internal DppWorkerRequest(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestHeadersTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestParametersTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestHeadersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -127,7 +125,7 @@ internal DppWorkerRequest(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequest.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequest.TypeConverter.cs index 564ffa418215..682f695626f6 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequest.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequest.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequest.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequest.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequest.cs index b1b75ba25860..ef6307b85ba2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequest.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequest.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class DppWorkerRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestInternal { /// Backing field for property. @@ -14,13 +14,13 @@ public partial class DppWorkerRequest : public string CultureInfo { get => this._cultureInfo; set => this._cultureInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders _header; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders _header; /// /// Dictionary of /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders Header { get => (this._header = this._header ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestHeaders()); set => this._header = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders Header { get => (this._header = this._header ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestHeaders()); set => this._header = value; } /// Backing field for property. private string _httpMethod; @@ -29,11 +29,11 @@ public partial class DppWorkerRequest : public string HttpMethod { get => this._httpMethod; set => this._httpMethod = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters _parameter; /// Dictionary of [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters Parameter { get => (this._parameter = this._parameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestParameters()); set => this._parameter = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters Parameter { get => (this._parameter = this._parameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestParameters()); set => this._parameter = value; } /// Backing field for property. private string _subscriptionId; @@ -77,8 +77,8 @@ public partial interface IDppWorkerRequest : ReadOnly = false, Description = @"Dictionary of ", SerializedName = @"headers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders Header { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders Header { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -93,8 +93,8 @@ public partial interface IDppWorkerRequest : ReadOnly = false, Description = @"Dictionary of ", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters Parameter { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters Parameter { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -128,11 +128,11 @@ internal partial interface IDppWorkerRequestInternal /// /// Dictionary of /// - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders Header { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders Header { get; set; } string HttpMethod { get; set; } /// Dictionary of - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters Parameter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters Parameter { get; set; } string SubscriptionId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequest.json.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequest.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequest.json.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequest.json.cs index 8f77e813932c..5d1f3abe6ef0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequest.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -59,22 +59,22 @@ internal DppWorkerRequest(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt } {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} - {_header = If( json?.PropertyT("headers"), out var __jsonHeaders) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestHeaders.FromJson(__jsonHeaders) : Header;} + {_header = If( json?.PropertyT("headers"), out var __jsonHeaders) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestHeaders.FromJson(__jsonHeaders) : Header;} {_supportedGroupVersion = If( json?.PropertyT("supportedGroupVersions"), out var __jsonSupportedGroupVersions) ? If( __jsonSupportedGroupVersions as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : SupportedGroupVersion;} {_cultureInfo = If( json?.PropertyT("cultureInfo"), out var __jsonCultureInfo) ? (string)__jsonCultureInfo : (string)CultureInfo;} - {_parameter = If( json?.PropertyT("parameters"), out var __jsonParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestParameters.FromJson(__jsonParameters) : Parameter;} + {_parameter = If( json?.PropertyT("parameters"), out var __jsonParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestParameters.FromJson(__jsonParameters) : Parameter;} {_httpMethod = If( json?.PropertyT("httpMethod"), out var __jsonHttpMethod) ? (string)__jsonHttpMethod : (string)HttpMethod;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppWorkerRequest(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.PowerShell.cs index ab61d0bd0701..3df10c602093 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -50,35 +50,35 @@ public partial class DppWorkerRequestHeaders partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppWorkerRequestHeaders(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppWorkerRequestHeaders(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -97,7 +97,7 @@ internal DppWorkerRequestHeaders(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -120,7 +120,7 @@ internal DppWorkerRequestHeaders(global::System.Management.Automation.PSObject c /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.TypeConverter.cs index be67196b1e5e..5f31186be1d9 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.cs index e0d17a5173d3..a446fc61ca93 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -6,8 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Pr /// Dictionary of components·ikn5y4·schemas·dppworkerrequest·properties·headers·additionalproperties /// public partial class DppWorkerRequestHeaders : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeadersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeadersInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.dictionary.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.dictionary.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.dictionary.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.dictionary.cs index e3b463788fc7..1291e8e5cfef 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,6 +65,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestHeaders source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestHeaders source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.json.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.json.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.json.cs index a81354c1ded1..76f93db7962d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestHeaders.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestHeaders.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -66,13 +66,13 @@ internal DppWorkerRequestHeaders(Microsoft.Azure.PowerShell.Cmdlets.DataProtecti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppWorkerRequestHeaders(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.PowerShell.cs index ce28cd3bb918..e751e01383c9 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,35 +48,35 @@ public partial class DppWorkerRequestParameters partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppWorkerRequestParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppWorkerRequestParameters(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -95,7 +95,7 @@ internal DppWorkerRequestParameters(global::System.Collections.IDictionary conte } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -118,7 +118,7 @@ internal DppWorkerRequestParameters(global::System.Management.Automation.PSObjec /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.TypeConverter.cs index 736adbee13d3..c91e1d0f24a7 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.cs index 120c94f444d9..6a7b07a7b907 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Dictionary of public partial class DppWorkerRequestParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParametersInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.dictionary.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.dictionary.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.dictionary.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.dictionary.cs index 15c593540063..204affd26776 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,6 +65,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestParameters source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppWorkerRequestParameters source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.json.cs b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.json.cs rename to src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.json.cs index f5007282426f..9c3124ddea2a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/DppWorkerRequestParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/DppWorkerRequestParameters.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -64,13 +64,13 @@ internal DppWorkerRequestParameters(Microsoft.Azure.PowerShell.Cmdlets.DataProte } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppWorkerRequestParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppWorkerRequestParameters(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/Error.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/Error.PowerShell.cs similarity index 60% rename from src/DataProtection/generated/api/Models/Api20210201Preview/Error.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/Error.PowerShell.cs index f902ba17373b..a11011945f5e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/Error.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/Error.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,33 +48,33 @@ public partial class Error partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Error(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Error(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -87,16 +87,16 @@ internal Error(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Target, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -109,11 +109,11 @@ internal Error(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)this).Target, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -122,7 +122,7 @@ internal Error(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/Error.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/Error.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/Error.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/Error.TypeConverter.cs index 7312282f431e..92df521238f0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/Error.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/Error.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/Error.cs b/src/DataProtection/generated/api/Models/Api202101/Error.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210201Preview/Error.cs rename to src/DataProtection/generated/api/Models/Api202101/Error.cs index b61f71bcc23e..5061271c789d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/Error.cs +++ b/src/DataProtection/generated/api/Models/Api202101/Error.cs @@ -1,19 +1,19 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// The resource management error response. public partial class Error : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[] _additionalInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[] _additionalInfo; /// The error additional info. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } /// Backing field for property. private string _code; @@ -23,11 +23,11 @@ public partial class Error : public string Code { get => this._code; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[] _detail; /// The error details. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[] Detail { get => this._detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[] Detail { get => this._detail; } /// Backing field for property. private string _message; @@ -37,19 +37,19 @@ public partial class Error : public string Message { get => this._message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal.Code { get => this._code; set { {_code = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal.Code { get => this._code; set { {_code = value;} } } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal.Detail { get => this._detail; set { {_detail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal.Detail { get => this._detail; set { {_detail = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal.Message { get => this._message; set { {_message = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal.Message { get => this._message; set { {_message = value;} } } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal.Target { get => this._target; set { {_target = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal.Target { get => this._target; set { {_target = value;} } } /// Backing field for property. private string _target; @@ -74,8 +74,8 @@ public partial interface IError : ReadOnly = true, Description = @"The error additional info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[] AdditionalInfo { get; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -90,8 +90,8 @@ public partial interface IError : ReadOnly = true, Description = @"The error details.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[] Detail { get; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -115,11 +115,11 @@ internal partial interface IErrorInternal { /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[] Detail { get; set; } /// The error message. string Message { get; set; } /// The error target. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/Error.json.cs b/src/DataProtection/generated/api/Models/Api202101/Error.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/Error.json.cs rename to src/DataProtection/generated/api/Models/Api202101/Error.json.cs index dc6be6dead25..43915bd5aea8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/Error.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/Error.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,22 +58,22 @@ internal Error(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.Js { return; } - {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorAdditionalInfo.FromJson(__u) )) ))() : null : AdditionalInfo;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorAdditionalInfo.FromJson(__u) )) ))() : null : AdditionalInfo;} {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Error.FromJson(__p) )) ))() : null : Detail;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Error.FromJson(__p) )) ))() : null : Detail;} {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new Error(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ErrorAdditionalInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ErrorAdditionalInfo.PowerShell.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ErrorAdditionalInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/ErrorAdditionalInfo.PowerShell.cs index 99c8d69ec68a..c0586d18ef6f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ErrorAdditionalInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ErrorAdditionalInfo.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,35 +48,33 @@ public partial class ErrorAdditionalInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ErrorAdditionalInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ErrorAdditionalInfo(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -89,13 +87,13 @@ internal ErrorAdditionalInfo(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.AnyTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -108,8 +106,8 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.AnyTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -118,7 +116,7 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ErrorAdditionalInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ErrorAdditionalInfo.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ErrorAdditionalInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ErrorAdditionalInfo.TypeConverter.cs index c30168fd65fb..ca3aa0e25a84 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ErrorAdditionalInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ErrorAdditionalInfo.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ErrorAdditionalInfo.cs b/src/DataProtection/generated/api/Models/Api202101/ErrorAdditionalInfo.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ErrorAdditionalInfo.cs rename to src/DataProtection/generated/api/Models/Api202101/ErrorAdditionalInfo.cs index 4cd898b8649b..dc18cf4b89a7 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ErrorAdditionalInfo.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ErrorAdditionalInfo.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// The resource management error additional info. public partial class ErrorAdditionalInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfoInternal { /// Backing field for property. @@ -16,10 +16,10 @@ public partial class ErrorAdditionalInfo : public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Any()); } /// Internal Acessors for Info - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Any()); set { {_info = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Any()); set { {_info = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _type; diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ErrorAdditionalInfo.json.cs b/src/DataProtection/generated/api/Models/Api202101/ErrorAdditionalInfo.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ErrorAdditionalInfo.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ErrorAdditionalInfo.json.cs index ffeee5be1101..0a52be91d1e0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ErrorAdditionalInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ErrorAdditionalInfo.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -64,13 +64,13 @@ internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ExportJobsResult.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ExportJobsResult.PowerShell.cs similarity index 68% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ExportJobsResult.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/ExportJobsResult.PowerShell.cs index 723435561925..69b6dbc9d7de 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ExportJobsResult.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ExportJobsResult.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,35 +48,33 @@ public partial class ExportJobsResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ExportJobsResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ExportJobsResult(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -89,15 +87,15 @@ internal ExportJobsResult(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).BlobUrl = (string) content.GetValueForProperty("BlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).BlobUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).BlobSasKey = (string) content.GetValueForProperty("BlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).BlobSasKey, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).ExcelFileBlobUrl = (string) content.GetValueForProperty("ExcelFileBlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).ExcelFileBlobUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).ExcelFileBlobSasKey = (string) content.GetValueForProperty("ExcelFileBlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).ExcelFileBlobSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).BlobUrl = (string) content.GetValueForProperty("BlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).BlobUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).BlobSasKey = (string) content.GetValueForProperty("BlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).BlobSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).ExcelFileBlobUrl = (string) content.GetValueForProperty("ExcelFileBlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).ExcelFileBlobUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).ExcelFileBlobSasKey = (string) content.GetValueForProperty("ExcelFileBlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).ExcelFileBlobSasKey, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -110,10 +108,10 @@ internal ExportJobsResult(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).BlobUrl = (string) content.GetValueForProperty("BlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).BlobUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).BlobSasKey = (string) content.GetValueForProperty("BlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).BlobSasKey, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).ExcelFileBlobUrl = (string) content.GetValueForProperty("ExcelFileBlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).ExcelFileBlobUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).ExcelFileBlobSasKey = (string) content.GetValueForProperty("ExcelFileBlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal)this).ExcelFileBlobSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).BlobUrl = (string) content.GetValueForProperty("BlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).BlobUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).BlobSasKey = (string) content.GetValueForProperty("BlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).BlobSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).ExcelFileBlobUrl = (string) content.GetValueForProperty("ExcelFileBlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).ExcelFileBlobUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).ExcelFileBlobSasKey = (string) content.GetValueForProperty("ExcelFileBlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal)this).ExcelFileBlobSasKey, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -122,7 +120,7 @@ internal ExportJobsResult(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ExportJobsResult.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ExportJobsResult.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ExportJobsResult.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ExportJobsResult.TypeConverter.cs index 66cf8b9513ab..60ce519508a8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ExportJobsResult.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ExportJobsResult.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ExportJobsResult.cs b/src/DataProtection/generated/api/Models/Api202101/ExportJobsResult.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ExportJobsResult.cs rename to src/DataProtection/generated/api/Models/Api202101/ExportJobsResult.cs index d43f1ca3d3c5..37eb4d368d3b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ExportJobsResult.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ExportJobsResult.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// The result for export jobs containing blob details. public partial class ExportJobsResult : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResult, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResult, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal { /// Backing field for property. @@ -37,16 +37,16 @@ public partial class ExportJobsResult : public string ExcelFileBlobUrl { get => this._excelFileBlobUrl; } /// Internal Acessors for BlobSasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal.BlobSasKey { get => this._blobSasKey; set { {_blobSasKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal.BlobSasKey { get => this._blobSasKey; set { {_blobSasKey = value;} } } /// Internal Acessors for BlobUrl - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal.BlobUrl { get => this._blobUrl; set { {_blobUrl = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal.BlobUrl { get => this._blobUrl; set { {_blobUrl = value;} } } /// Internal Acessors for ExcelFileBlobSasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal.ExcelFileBlobSasKey { get => this._excelFileBlobSasKey; set { {_excelFileBlobSasKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal.ExcelFileBlobSasKey { get => this._excelFileBlobSasKey; set { {_excelFileBlobSasKey = value;} } } /// Internal Acessors for ExcelFileBlobUrl - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResultInternal.ExcelFileBlobUrl { get => this._excelFileBlobUrl; set { {_excelFileBlobUrl = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResultInternal.ExcelFileBlobUrl { get => this._excelFileBlobUrl; set { {_excelFileBlobUrl = value;} } } /// Creates an new instance. public ExportJobsResult() diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ExportJobsResult.json.cs b/src/DataProtection/generated/api/Models/Api202101/ExportJobsResult.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ExportJobsResult.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ExportJobsResult.json.cs index f58fb47569ad..0f0e381c2c03 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ExportJobsResult.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ExportJobsResult.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -66,13 +66,13 @@ internal ExportJobsResult(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IExportJobsResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IExportJobsResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ExportJobsResult(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequest.PowerShell.cs similarity index 69% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequest.PowerShell.cs index f247e20f762a..181ec849aae0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequest.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,35 +48,35 @@ public partial class FeatureValidationRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FeatureValidationRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FeatureValidationRequest(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -89,14 +89,14 @@ internal FeatureValidationRequest(global::System.Collections.IDictionary content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestInternal)this).FeatureName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestInternal)this).FeatureName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -109,9 +109,9 @@ internal FeatureValidationRequest(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestInternal)this).FeatureName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestInternal)this).FeatureName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -120,7 +120,7 @@ internal FeatureValidationRequest(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequest.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequest.TypeConverter.cs index 6789d6179212..c5c8e7c7ad56 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequest.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequest.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequest.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequest.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequest.cs index 6db14985441c..ea5a81ef6b91 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequest.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequest.cs @@ -1,18 +1,18 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Base class for feature object public partial class FeatureValidationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase __featureValidationRequestBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationRequestBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase __featureValidationRequestBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationRequestBase(); /// Backing field for property. private string _featureName; @@ -30,7 +30,7 @@ public partial class FeatureValidationRequest : /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBaseInternal)__featureValidationRequestBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBaseInternal)__featureValidationRequestBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBaseInternal)__featureValidationRequestBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBaseInternal)__featureValidationRequestBase).ObjectType = value ; } /// Creates an new instance. public FeatureValidationRequest() @@ -53,7 +53,7 @@ public FeatureValidationRequest() /// Base class for feature object public partial interface IFeatureValidationRequest : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase { /// backup support feature name. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -75,7 +75,7 @@ public partial interface IFeatureValidationRequest : } /// Base class for feature object internal partial interface IFeatureValidationRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBaseInternal { /// backup support feature name. string FeatureName { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequest.json.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequest.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequest.json.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequest.json.cs index 0a4d136dc4ab..9cc834a1daff 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequest.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,20 +58,20 @@ internal FeatureValidationRequest(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - __featureValidationRequestBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationRequestBase(json); + __featureValidationRequestBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationRequestBase(json); {_featureType = If( json?.PropertyT("featureType"), out var __jsonFeatureType) ? (string)__jsonFeatureType : (string)FeatureType;} {_featureName = If( json?.PropertyT("featureName"), out var __jsonFeatureName) ? (string)__jsonFeatureName : (string)FeatureName;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new FeatureValidationRequest(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequestBase.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequestBase.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequestBase.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequestBase.PowerShell.cs index 118e6d663b34..6e39bf9227d2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequestBase.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequestBase.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,35 +48,35 @@ public partial class FeatureValidationRequestBase partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FeatureValidationRequestBase(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FeatureValidationRequestBase(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -89,12 +89,12 @@ internal FeatureValidationRequestBase(global::System.Collections.IDictionary con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,7 +107,7 @@ internal FeatureValidationRequestBase(global::System.Management.Automation.PSObj return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -116,7 +116,7 @@ internal FeatureValidationRequestBase(global::System.Management.Automation.PSObj /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequestBase.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequestBase.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequestBase.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequestBase.TypeConverter.cs index 7c17fab3a19f..757947483318 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequestBase.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequestBase.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequestBase.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequestBase.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequestBase.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequestBase.cs index 34180ad686ff..fc5418ae514d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequestBase.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequestBase.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Base class for Backup Feature support public partial class FeatureValidationRequestBase : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBaseInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequestBase.json.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequestBase.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequestBase.json.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequestBase.json.cs index b75a05ca0d5d..6aebd6451a4b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationRequestBase.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationRequestBase.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -63,15 +63,15 @@ internal FeatureValidationRequestBase(Microsoft.Azure.PowerShell.Cmdlets.DataPro } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase interface - /// is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase interface is + /// polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponse.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponse.PowerShell.cs similarity index 65% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponse.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponse.PowerShell.cs index 0c9ddecfb970..58925ce27646 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponse.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponse.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,35 +48,35 @@ public partial class FeatureValidationResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FeatureValidationResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FeatureValidationResponse(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -89,14 +89,14 @@ internal FeatureValidationResponse(global::System.Collections.IDictionary conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseInternal)this).Feature = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature[]) content.GetValueForProperty("Feature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseInternal)this).Feature, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SupportedFeatureTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseInternal)this).Feature = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature[]) content.GetValueForProperty("Feature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseInternal)this).Feature, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SupportedFeatureTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -109,9 +109,9 @@ internal FeatureValidationResponse(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseInternal)this).Feature = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature[]) content.GetValueForProperty("Feature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseInternal)this).Feature, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SupportedFeatureTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseInternal)this).Feature = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature[]) content.GetValueForProperty("Feature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseInternal)this).Feature, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SupportedFeatureTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -120,7 +120,7 @@ internal FeatureValidationResponse(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponse.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponse.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponse.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponse.TypeConverter.cs index 91271a716228..f8724da39aef 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponse.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponse.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponse.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponse.cs similarity index 78% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponse.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponse.cs index a1eb522cd31d..b41446a8224a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponse.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponse.cs @@ -1,25 +1,25 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Feature Validation Response public partial class FeatureValidationResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase __featureValidationResponseBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationResponseBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase __featureValidationResponseBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationResponseBase(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature[] _feature; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature[] _feature; /// Response features [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature[] Feature { get => this._feature; set => this._feature = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature[] Feature { get => this._feature; set => this._feature = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType? _featureType; @@ -30,7 +30,7 @@ public partial class FeatureValidationResponse : /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBaseInternal)__featureValidationResponseBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBaseInternal)__featureValidationResponseBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBaseInternal)__featureValidationResponseBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBaseInternal)__featureValidationResponseBase).ObjectType = value ; } /// Creates an new instance. public FeatureValidationResponse() @@ -53,7 +53,7 @@ public FeatureValidationResponse() /// Feature Validation Response public partial interface IFeatureValidationResponse : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase { /// Response features [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -61,8 +61,8 @@ public partial interface IFeatureValidationResponse : ReadOnly = false, Description = @"Response features", SerializedName = @"features", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature[] Feature { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature[] Feature { get; set; } /// backup support feature type. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -75,10 +75,10 @@ public partial interface IFeatureValidationResponse : } /// Feature Validation Response internal partial interface IFeatureValidationResponseInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBaseInternal { /// Response features - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature[] Feature { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature[] Feature { get; set; } /// backup support feature type. Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType? FeatureType { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponse.json.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponse.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponse.json.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponse.json.cs index f89fc05d8e6a..821bdfbe3914 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponse.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponse.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -58,20 +58,20 @@ internal FeatureValidationResponse(Microsoft.Azure.PowerShell.Cmdlets.DataProtec { return; } - __featureValidationResponseBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationResponseBase(json); + __featureValidationResponseBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationResponseBase(json); {_featureType = If( json?.PropertyT("featureType"), out var __jsonFeatureType) ? (string)__jsonFeatureType : (string)FeatureType;} - {_feature = If( json?.PropertyT("features"), out var __jsonFeatures) ? If( __jsonFeatures as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SupportedFeature.FromJson(__u) )) ))() : null : Feature;} + {_feature = If( json?.PropertyT("features"), out var __jsonFeatures) ? If( __jsonFeatures as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.SupportedFeature.FromJson(__u) )) ))() : null : Feature;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new FeatureValidationResponse(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponseBase.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponseBase.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponseBase.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponseBase.PowerShell.cs index 016a114f28c1..cf00a7f15d5f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponseBase.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponseBase.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,35 +48,35 @@ public partial class FeatureValidationResponseBase partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FeatureValidationResponseBase(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FeatureValidationResponseBase(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -89,12 +89,12 @@ internal FeatureValidationResponseBase(global::System.Collections.IDictionary co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,7 +107,7 @@ internal FeatureValidationResponseBase(global::System.Management.Automation.PSOb return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } @@ -116,7 +116,7 @@ internal FeatureValidationResponseBase(global::System.Management.Automation.PSOb /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponseBase.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponseBase.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponseBase.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponseBase.TypeConverter.cs index 28b832f25296..41426a9ec8c3 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponseBase.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponseBase.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponseBase.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponseBase.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponseBase.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponseBase.cs index 64d38a4d15fe..56e0fa7adb91 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponseBase.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponseBase.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Base class for Backup Feature support public partial class FeatureValidationResponseBase : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBaseInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponseBase.json.cs b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponseBase.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponseBase.json.cs rename to src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponseBase.json.cs index e164fbffa794..573dd2efc888 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/FeatureValidationResponseBase.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/FeatureValidationResponseBase.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -63,15 +63,15 @@ internal FeatureValidationResponseBase(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase interface /// is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ImmediateCopyOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ImmediateCopyOption.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ImmediateCopyOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/ImmediateCopyOption.PowerShell.cs index 1ccb06dde03e..2fb49a23d3ea 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ImmediateCopyOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ImmediateCopyOption.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class ImmediateCopyOption partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IImmediateCopyOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IImmediateCopyOption DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ImmediateCopyOption(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IImmediateCopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IImmediateCopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ImmediateCopyOption(content); } @@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IImmediateCopyOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IImmediateCopyOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,12 +94,12 @@ internal ImmediateCopyOption(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -114,7 +112,7 @@ internal ImmediateCopyOption(global::System.Management.Automation.PSObject conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ImmediateCopyOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ImmediateCopyOption.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ImmediateCopyOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ImmediateCopyOption.TypeConverter.cs index 9f290fcff90b..76ee99f3b4ef 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ImmediateCopyOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ImmediateCopyOption.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IImmediateCopyOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IImmediateCopyOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IImmediateCopyOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IImmediateCopyOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ImmediateCopyOption.cs b/src/DataProtection/generated/api/Models/Api202101/ImmediateCopyOption.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ImmediateCopyOption.cs rename to src/DataProtection/generated/api/Models/Api202101/ImmediateCopyOption.cs index e81b4be665db..f5d01d31f4e2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ImmediateCopyOption.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ImmediateCopyOption.cs @@ -1,22 +1,22 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Immediate copy Option public partial class ImmediateCopyOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IImmediateCopyOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IImmediateCopyOptionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IImmediateCopyOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IImmediateCopyOptionInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOption(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOption(); /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)__copyOption).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)__copyOption).ObjectType = value ; } /// Creates an new instance. public ImmediateCopyOption() @@ -39,13 +39,13 @@ public ImmediateCopyOption() /// Immediate copy Option public partial interface IImmediateCopyOption : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption { } /// Immediate copy Option internal partial interface IImmediateCopyOptionInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal { } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ImmediateCopyOption.json.cs b/src/DataProtection/generated/api/Models/Api202101/ImmediateCopyOption.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ImmediateCopyOption.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ImmediateCopyOption.json.cs index bdf29b5acbfe..c98efd7f4f17 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ImmediateCopyOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ImmediateCopyOption.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class ImmediateCopyOption partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IImmediateCopyOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IImmediateCopyOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IImmediateCopyOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IImmediateCopyOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IImmediateCopyOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IImmediateCopyOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ImmediateCopyOption(json) : null; } @@ -70,7 +70,7 @@ internal ImmediateCopyOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R { return; } - __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOption(json); + __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOption(json); AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerError.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/InnerError.PowerShell.cs similarity index 67% rename from src/DataProtection/generated/api/Models/Api20210201Preview/InnerError.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/InnerError.PowerShell.cs index 831dbdf2e241..9b80103d501b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerError.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/InnerError.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,27 +48,27 @@ public partial class InnerError partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InnerError(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InnerError(content); } @@ -78,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -94,14 +94,14 @@ internal InnerError(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorInternal)this).AdditionalInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerErrorAdditionalInfoTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorInternal)this).EmbeddedInnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError) content.GetValueForProperty("EmbeddedInnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorInternal)this).EmbeddedInnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorInternal)this).AdditionalInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerErrorAdditionalInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorInternal)this).EmbeddedInnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError) content.GetValueForProperty("EmbeddedInnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorInternal)this).EmbeddedInnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerErrorTypeConverter.ConvertFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -114,9 +114,9 @@ internal InnerError(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorInternal)this).AdditionalInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerErrorAdditionalInfoTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorInternal)this).EmbeddedInnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError) content.GetValueForProperty("EmbeddedInnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorInternal)this).EmbeddedInnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorInternal)this).AdditionalInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerErrorAdditionalInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorInternal)this).EmbeddedInnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError) content.GetValueForProperty("EmbeddedInnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorInternal)this).EmbeddedInnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerErrorTypeConverter.ConvertFrom); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerError.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/InnerError.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/InnerError.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/InnerError.TypeConverter.cs index 9f8cda5043e6..1ea048b78d18 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerError.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/InnerError.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerError.cs b/src/DataProtection/generated/api/Models/Api202101/InnerError.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210201Preview/InnerError.cs rename to src/DataProtection/generated/api/Models/Api202101/InnerError.cs index 6f10dfae7731..53d9a37bfb48 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerError.cs +++ b/src/DataProtection/generated/api/Models/Api202101/InnerError.cs @@ -1,21 +1,21 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Inner Error public partial class InnerError : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo _additionalInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo _additionalInfo; /// /// Any Key value pairs that can be provided to the client for additional verbose information. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo AdditionalInfo { get => (this._additionalInfo = this._additionalInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerErrorAdditionalInfo()); set => this._additionalInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo AdditionalInfo { get => (this._additionalInfo = this._additionalInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerErrorAdditionalInfo()); set => this._additionalInfo = value; } /// Backing field for property. private string _code; @@ -25,11 +25,11 @@ public partial class InnerError : public string Code { get => this._code; set => this._code = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError _embeddedInnerError; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError _embeddedInnerError; /// Child Inner Error, to allow Nesting. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError EmbeddedInnerError { get => (this._embeddedInnerError = this._embeddedInnerError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerError()); set => this._embeddedInnerError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError EmbeddedInnerError { get => (this._embeddedInnerError = this._embeddedInnerError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerError()); set => this._embeddedInnerError = value; } /// Creates an new instance. public InnerError() @@ -49,8 +49,8 @@ public partial interface IInnerError : ReadOnly = false, Description = @"Any Key value pairs that can be provided to the client for additional verbose information.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo AdditionalInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo AdditionalInfo { get; set; } /// Unique code for this error [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -65,8 +65,8 @@ public partial interface IInnerError : ReadOnly = false, Description = @"Child Inner Error, to allow Nesting.", SerializedName = @"embeddedInnerError", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError EmbeddedInnerError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError EmbeddedInnerError { get; set; } } /// Inner Error @@ -76,11 +76,11 @@ internal partial interface IInnerErrorInternal /// /// Any Key value pairs that can be provided to the client for additional verbose information. /// - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo AdditionalInfo { get; set; } /// Unique code for this error string Code { get; set; } /// Child Inner Error, to allow Nesting. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError EmbeddedInnerError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError EmbeddedInnerError { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerError.json.cs b/src/DataProtection/generated/api/Models/Api202101/InnerError.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/InnerError.json.cs rename to src/DataProtection/generated/api/Models/Api202101/InnerError.json.cs index 144c9ad440ee..4230ccea4fa8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerError.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/InnerError.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class InnerError partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new InnerError(json) : null; } @@ -70,9 +70,9 @@ internal InnerError(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Js { return; } - {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerErrorAdditionalInfo.FromJson(__jsonAdditionalInfo) : AdditionalInfo;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerErrorAdditionalInfo.FromJson(__jsonAdditionalInfo) : AdditionalInfo;} {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} - {_embeddedInnerError = If( json?.PropertyT("embeddedInnerError"), out var __jsonEmbeddedInnerError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerError.FromJson(__jsonEmbeddedInnerError) : EmbeddedInnerError;} + {_embeddedInnerError = If( json?.PropertyT("embeddedInnerError"), out var __jsonEmbeddedInnerError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerError.FromJson(__jsonEmbeddedInnerError) : EmbeddedInnerError;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.PowerShell.cs index fb719c06e28b..7779a2b9c2e8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -50,29 +50,29 @@ public partial class InnerErrorAdditionalInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InnerErrorAdditionalInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InnerErrorAdditionalInfo(content); } @@ -82,10 +82,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -104,7 +104,7 @@ internal InnerErrorAdditionalInfo(global::System.Collections.IDictionary content } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.TypeConverter.cs index 3d4c8c7e9c46..f224d874b729 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.cs b/src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.cs rename to src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.cs index 3d13fb27c558..3d9b5153369c 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.cs +++ b/src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -6,8 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Pr /// Any Key value pairs that can be provided to the client for additional verbose information. /// public partial class InnerErrorAdditionalInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfoInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.dictionary.cs b/src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.dictionary.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.dictionary.cs rename to src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.dictionary.cs index e211ba8bd4f5..043328fdb0b9 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,6 +65,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerErrorAdditionalInfo source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerErrorAdditionalInfo source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.json.cs b/src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.json.cs rename to src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.json.cs index e879a2e68de1..5dcdbab08de6 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/InnerErrorAdditionalInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/InnerErrorAdditionalInfo.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -49,13 +49,13 @@ public partial class InnerErrorAdditionalInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new InnerErrorAdditionalInfo(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreCriteria.PowerShell.cs new file mode 100644 index 000000000000..9152df01219d --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreCriteria.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Class to contain criteria for item level restore + [System.ComponentModel.TypeConverter(typeof(ItemLevelRestoreCriteriaTypeConverter))] + public partial class ItemLevelRestoreCriteria + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ItemLevelRestoreCriteria(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ItemLevelRestoreCriteria(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ItemLevelRestoreCriteria(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ItemLevelRestoreCriteria(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Class to contain criteria for item level restore + [System.ComponentModel.TypeConverter(typeof(ItemLevelRestoreCriteriaTypeConverter))] + public partial interface IItemLevelRestoreCriteria + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreCriteria.TypeConverter.cs new file mode 100644 index 000000000000..bf6305f9b58c --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreCriteria.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ItemLevelRestoreCriteriaTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter to the parameter using and + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ItemLevelRestoreCriteria.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ItemLevelRestoreCriteria.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ItemLevelRestoreCriteria.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreCriteria.cs b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreCriteria.cs new file mode 100644 index 000000000000..c534ef5d2ab1 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreCriteria.cs @@ -0,0 +1,46 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Class to contain criteria for item level restore + public partial class ItemLevelRestoreCriteria : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteriaInternal + { + + /// Backing field for property. + private string _objectType; + + /// Type of the specific object - used for deserializing + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string ObjectType { get => this._objectType; set => this._objectType = value; } + + /// Creates an new instance. + public ItemLevelRestoreCriteria() + { + + } + } + /// Class to contain criteria for item level restore + public partial interface IItemLevelRestoreCriteria : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + { + /// Type of the specific object - used for deserializing + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Type of the specific object - used for deserializing", + SerializedName = @"objectType", + PossibleTypes = new [] { typeof(string) })] + string ObjectType { get; set; } + + } + /// Class to contain criteria for item level restore + internal partial interface IItemLevelRestoreCriteriaInternal + + { + /// Type of the specific object - used for deserializing + string ObjectType { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreCriteria.json.cs b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreCriteria.json.cs new file mode 100644 index 000000000000..a410f8ffdf7b --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreCriteria.json.cs @@ -0,0 +1,116 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Class to contain criteria for item level restore + public partial class ItemLevelRestoreCriteria + { + + /// + /// 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.DataProtection.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.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.DataProtection.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.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria interface is polymorphic, + /// and the precise model class that will get deserialized is determined at runtime based on the payload. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) + { + return null; + } + // Polymorphic type -- select the appropriate constructor using the discriminator + + switch ( json.StringProperty("objectType") ) + { + case "RangeBasedItemLevelRestoreCriteria": + { + return new RangeBasedItemLevelRestoreCriteria(json); + } + } + return new ItemLevelRestoreCriteria(json); + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject instance to deserialize from. + internal ItemLevelRestoreCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_objectType = If( json?.PropertyT("objectType"), out var __jsonObjectType) ? (string)__jsonObjectType : (string)ObjectType;} + 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.DataProtection.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._objectType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._objectType.ToString()) : null, "objectType" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreTargetInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreTargetInfo.PowerShell.cs new file mode 100644 index 000000000000..1760a396d200 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreTargetInfo.PowerShell.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Restore target info for Item level restore operation + [System.ComponentModel.TypeConverter(typeof(ItemLevelRestoreTargetInfoTypeConverter))] + public partial class ItemLevelRestoreTargetInfo + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ItemLevelRestoreTargetInfo(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ItemLevelRestoreTargetInfo(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ItemLevelRestoreTargetInfo(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria[]) content.GetValueForProperty("RestoreCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ItemLevelRestoreCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ItemLevelRestoreTargetInfo(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria[]) content.GetValueForProperty("RestoreCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ItemLevelRestoreCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Restore target info for Item level restore operation + [System.ComponentModel.TypeConverter(typeof(ItemLevelRestoreTargetInfoTypeConverter))] + public partial interface IItemLevelRestoreTargetInfo + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreTargetInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreTargetInfo.TypeConverter.cs new file mode 100644 index 000000000000..924197bc0295 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreTargetInfo.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ItemLevelRestoreTargetInfoTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter to the parameter using and + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfo ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfo).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ItemLevelRestoreTargetInfo.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ItemLevelRestoreTargetInfo.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ItemLevelRestoreTargetInfo.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreTargetInfo.cs b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreTargetInfo.cs new file mode 100644 index 000000000000..40539927ad2e --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreTargetInfo.cs @@ -0,0 +1,114 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Restore target info for Item level restore operation + public partial class ItemLevelRestoreTargetInfo : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBase(); + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource _datasourceInfo; + + /// Information of target DS + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource DatasourceInfo { get => (this._datasourceInfo = this._datasourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Datasource()); set => this._datasourceInfo = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet _datasourceSetInfo; + + /// Information of target DS Set + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet DatasourceSetInfo { get => (this._datasourceSetInfo = this._datasourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSet()); set => this._datasourceSetInfo = value; } + + /// Internal Acessors for RecoveryOption + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption = value; } + + /// Type of Datasource object, used to initialize the right inherited type + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType = value ; } + + /// Recovery Option + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public string RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria[] _restoreCriterion; + + /// Restore Criteria + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria[] RestoreCriterion { get => this._restoreCriterion; set => this._restoreCriterion = value; } + + /// Target Restore region + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public string RestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } + + /// Creates an new instance. + public ItemLevelRestoreTargetInfo() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__restoreTargetInfoBase), __restoreTargetInfoBase); + await eventListener.AssertObjectIsValid(nameof(__restoreTargetInfoBase), __restoreTargetInfoBase); + } + } + /// Restore target info for Item level restore operation + public partial interface IItemLevelRestoreTargetInfo : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase + { + /// Information of target DS + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Information of target DS", + SerializedName = @"datasourceInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource DatasourceInfo { get; set; } + /// Information of target DS Set + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Information of target DS Set", + SerializedName = @"datasourceSetInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet DatasourceSetInfo { get; set; } + /// Restore Criteria + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Restore Criteria", + SerializedName = @"restoreCriteria", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria[] RestoreCriterion { get; set; } + + } + /// Restore target info for Item level restore operation + internal partial interface IItemLevelRestoreTargetInfoInternal : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal + { + /// Information of target DS + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource DatasourceInfo { get; set; } + /// Information of target DS Set + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet DatasourceSetInfo { get; set; } + /// Restore Criteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria[] RestoreCriterion { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreTargetInfo.json.cs b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreTargetInfo.json.cs new file mode 100644 index 000000000000..d55cecdf4447 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/ItemLevelRestoreTargetInfo.json.cs @@ -0,0 +1,115 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Restore target info for Item level restore operation + public partial class ItemLevelRestoreTargetInfo + { + + /// + /// 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.DataProtection.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.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.DataProtection.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.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfo. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfo. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreTargetInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ItemLevelRestoreTargetInfo(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject instance to deserialize from. + internal ItemLevelRestoreTargetInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBase(json); + {_restoreCriterion = If( json?.PropertyT("restoreCriteria"), out var __jsonRestoreCriteria) ? If( __jsonRestoreCriteria as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ItemLevelRestoreCriteria.FromJson(__u) )) ))() : null : RestoreCriterion;} + {_datasourceInfo = If( json?.PropertyT("datasourceInfo"), out var __jsonDatasourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Datasource.FromJson(__jsonDatasourceInfo) : DatasourceInfo;} + {_datasourceSetInfo = If( json?.PropertyT("datasourceSetInfo"), out var __jsonDatasourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSet.FromJson(__jsonDatasourceSetInfo) : DatasourceSetInfo;} + 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.DataProtection.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __restoreTargetInfoBase?.ToJson(container, serializationMode); + if (null != this._restoreCriterion) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.XNodeArray(); + foreach( var __x in this._restoreCriterion ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("restoreCriteria",__w); + } + AddIf( null != this._datasourceInfo ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._datasourceInfo.ToJson(null,serializationMode) : null, "datasourceInfo" ,container.Add ); + AddIf( null != this._datasourceSetInfo ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._datasourceSetInfo.ToJson(null,serializationMode) : null, "datasourceSetInfo" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfo.PowerShell.cs new file mode 100644 index 000000000000..137359404fe9 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfo.PowerShell.cs @@ -0,0 +1,151 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Extended Information about the job + [System.ComponentModel.TypeConverter(typeof(JobExtendedInfoTypeConverter))] + public partial class JobExtendedInfo + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new JobExtendedInfo(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new JobExtendedInfo(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal JobExtendedInfo(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("SourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).TargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("TargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).TargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).BackupInstanceState = (string) content.GetValueForProperty("BackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).BackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).DataTransferredInByte = (double?) content.GetValueForProperty("DataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).DataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).RecoveryDestination = (string) content.GetValueForProperty("RecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).RecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[]) content.GetValueForProperty("SubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime, (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 JobExtendedInfo(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("SourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).TargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("TargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).TargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).BackupInstanceState = (string) content.GetValueForProperty("BackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).BackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).DataTransferredInByte = (double?) content.GetValueForProperty("DataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).DataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).RecoveryDestination = (string) content.GetValueForProperty("RecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).RecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[]) content.GetValueForProperty("SubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime, (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.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Extended Information about the job + [System.ComponentModel.TypeConverter(typeof(JobExtendedInfoTypeConverter))] + public partial interface IJobExtendedInfo + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfo.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/JobExtendedInfo.TypeConverter.cs index 7f60afe3d63a..04ab5917efd3 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfo.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfo.cs b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfo.cs similarity index 69% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfo.cs rename to src/DataProtection/generated/api/Models/Api202101/JobExtendedInfo.cs index 23c03bf58ee4..4c181c9a853d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfo.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfo.cs @@ -1,19 +1,19 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Extended Information about the job public partial class JobExtendedInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails _additionalDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails _additionalDetail; /// Job's Additional Details [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails AdditionalDetail { get => (this._additionalDetail = this._additionalDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoAdditionalDetails()); set => this._additionalDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails AdditionalDetail { get => (this._additionalDetail = this._additionalDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoAdditionalDetails()); set => this._additionalDetail = value; } /// Backing field for property. private string _backupInstanceState; @@ -30,22 +30,22 @@ public partial class JobExtendedInfo : public double? DataTransferredInByte { get => this._dataTransferredInByte; } /// Internal Acessors for BackupInstanceState - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal.BackupInstanceState { get => this._backupInstanceState; set { {_backupInstanceState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal.BackupInstanceState { get => this._backupInstanceState; set { {_backupInstanceState = value;} } } /// Internal Acessors for DataTransferredInByte - double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal.DataTransferredInByte { get => this._dataTransferredInByte; set { {_dataTransferredInByte = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal.DataTransferredInByte { get => this._dataTransferredInByte; set { {_dataTransferredInByte = value;} } } /// Internal Acessors for RecoveryDestination - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal.RecoveryDestination { get => this._recoveryDestination; set { {_recoveryDestination = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal.RecoveryDestination { get => this._recoveryDestination; set { {_recoveryDestination = value;} } } /// Internal Acessors for SourceRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal.SourceRecoverPoint { get => (this._sourceRecoverPoint = this._sourceRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetails()); set { {_sourceRecoverPoint = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal.SourceRecoverPoint { get => (this._sourceRecoverPoint = this._sourceRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetails()); set { {_sourceRecoverPoint = value;} } } /// Internal Acessors for SubTask - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal.SubTask { get => this._subTask; set { {_subTask = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal.SubTask { get => this._subTask; set { {_subTask = value;} } } /// Internal Acessors for TargetRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal.TargetRecoverPoint { get => (this._targetRecoverPoint = this._targetRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetails()); set { {_targetRecoverPoint = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoInternal.TargetRecoverPoint { get => (this._targetRecoverPoint = this._targetRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetails()); set { {_targetRecoverPoint = value;} } } /// Backing field for property. private string _recoveryDestination; @@ -55,37 +55,37 @@ public partial class JobExtendedInfo : public string RecoveryDestination { get => this._recoveryDestination; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails _sourceRecoverPoint; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails _sourceRecoverPoint; /// Details of the Source Recovery Point [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails SourceRecoverPoint { get => (this._sourceRecoverPoint = this._sourceRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetails()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails SourceRecoverPoint { get => (this._sourceRecoverPoint = this._sourceRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetails()); } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointId = value ?? null; } + public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointId = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public global::System.DateTime? SourceRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? SourceRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointTime = value ?? default(global::System.DateTime); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[] _subTask; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[] _subTask; /// List of Sub Tasks of the job [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[] SubTask { get => this._subTask; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[] SubTask { get => this._subTask; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails _targetRecoverPoint; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails _targetRecoverPoint; /// Details of the Target Recovery Point [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails TargetRecoverPoint { get => (this._targetRecoverPoint = this._targetRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetails()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails TargetRecoverPoint { get => (this._targetRecoverPoint = this._targetRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetails()); } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointId = value ?? null; } + public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointId = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public global::System.DateTime? TargetRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? TargetRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointTime = value ?? default(global::System.DateTime); } /// Creates an new instance. public JobExtendedInfo() @@ -103,8 +103,8 @@ public partial interface IJobExtendedInfo : ReadOnly = false, Description = @"Job's Additional Details", SerializedName = @"additionalDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails AdditionalDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails AdditionalDetail { get; set; } /// State of the Backup Instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -151,8 +151,8 @@ public partial interface IJobExtendedInfo : ReadOnly = true, Description = @"List of Sub Tasks of the job", SerializedName = @"subTasks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[] SubTask { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[] SubTask { get; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -176,7 +176,7 @@ internal partial interface IJobExtendedInfoInternal { /// Job's Additional Details - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails AdditionalDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails AdditionalDetail { get; set; } /// State of the Backup Instance string BackupInstanceState { get; set; } /// Number of bytes transferred @@ -184,15 +184,15 @@ internal partial interface IJobExtendedInfoInternal /// Destination where restore is done string RecoveryDestination { get; set; } /// Details of the Source Recovery Point - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails SourceRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails SourceRecoverPoint { get; set; } string SourceRecoverPointRecoveryPointId { get; set; } global::System.DateTime? SourceRecoverPointRecoveryPointTime { get; set; } /// List of Sub Tasks of the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[] SubTask { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask[] SubTask { get; set; } /// Details of the Target Recovery Point - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails TargetRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails TargetRecoverPoint { get; set; } string TargetRecoverPointRecoveryPointId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfo.json.cs b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfo.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfo.json.cs rename to src/DataProtection/generated/api/Models/Api202101/JobExtendedInfo.json.cs index 923466f9b579..286953eae781 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfo.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class JobExtendedInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new JobExtendedInfo(json) : null; } @@ -70,13 +70,13 @@ internal JobExtendedInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti { return; } - {_sourceRecoverPoint = If( json?.PropertyT("sourceRecoverPoint"), out var __jsonSourceRecoverPoint) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetails.FromJson(__jsonSourceRecoverPoint) : SourceRecoverPoint;} - {_targetRecoverPoint = If( json?.PropertyT("targetRecoverPoint"), out var __jsonTargetRecoverPoint) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetails.FromJson(__jsonTargetRecoverPoint) : TargetRecoverPoint;} - {_additionalDetail = If( json?.PropertyT("additionalDetails"), out var __jsonAdditionalDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoAdditionalDetails.FromJson(__jsonAdditionalDetails) : AdditionalDetail;} + {_sourceRecoverPoint = If( json?.PropertyT("sourceRecoverPoint"), out var __jsonSourceRecoverPoint) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetails.FromJson(__jsonSourceRecoverPoint) : SourceRecoverPoint;} + {_targetRecoverPoint = If( json?.PropertyT("targetRecoverPoint"), out var __jsonTargetRecoverPoint) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreJobRecoveryPointDetails.FromJson(__jsonTargetRecoverPoint) : TargetRecoverPoint;} + {_additionalDetail = If( json?.PropertyT("additionalDetails"), out var __jsonAdditionalDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoAdditionalDetails.FromJson(__jsonAdditionalDetails) : AdditionalDetail;} {_backupInstanceState = If( json?.PropertyT("backupInstanceState"), out var __jsonBackupInstanceState) ? (string)__jsonBackupInstanceState : (string)BackupInstanceState;} {_dataTransferredInByte = If( json?.PropertyT("dataTransferredInBytes"), out var __jsonDataTransferredInBytes) ? (double?)__jsonDataTransferredInBytes : DataTransferredInByte;} {_recoveryDestination = If( json?.PropertyT("recoveryDestination"), out var __jsonRecoveryDestination) ? (string)__jsonRecoveryDestination : (string)RecoveryDestination;} - {_subTask = If( json?.PropertyT("subTasks"), out var __jsonSubTasks) ? If( __jsonSubTasks as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTask.FromJson(__u) )) ))() : null : SubTask;} + {_subTask = If( json?.PropertyT("subTasks"), out var __jsonSubTasks) ? If( __jsonSubTasks as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTask.FromJson(__u) )) ))() : null : SubTask;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.PowerShell.cs index b53fdfb46470..9b2898be9220 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class JobExtendedInfoAdditionalDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobExtendedInfoAdditionalDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobExtendedInfoAdditionalDetails(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal JobExtendedInfoAdditionalDetails(global::System.Collections.IDictionary } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.TypeConverter.cs index cf4c3fe524d7..c981c728eddc 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.cs b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.cs rename to src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.cs index 6b6f02ccf550..82c8b71a327f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Job's Additional Details public partial class JobExtendedInfoAdditionalDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetailsInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.dictionary.cs b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.dictionary.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.dictionary.cs rename to src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.dictionary.cs index e279ab2e778c..702dd0e666b5 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,6 +65,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoAdditionalDetails source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobExtendedInfoAdditionalDetails source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.json.cs b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.json.cs rename to src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.json.cs index 4f4b2f7334fd..4b5d56778071 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfoAdditionalDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobExtendedInfoAdditionalDetails.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class JobExtendedInfoAdditionalDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobExtendedInfoAdditionalDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new JobExtendedInfoAdditionalDetails(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTask.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/JobSubTask.PowerShell.cs similarity index 63% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTask.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/JobSubTask.PowerShell.cs index 5bde8ee0e96d..f0b9e1f124eb 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTask.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobSubTask.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,27 +48,27 @@ public partial class JobSubTask partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobSubTask(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobSubTask(content); } @@ -78,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -94,16 +94,16 @@ internal JobSubTask(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTaskAdditionalDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskId = (int) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskProgress = (string) content.GetValueForProperty("TaskProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskProgress, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskStatus = (string) content.GetValueForProperty("TaskStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTaskAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskId = (int) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskProgress = (string) content.GetValueForProperty("TaskProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskProgress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskStatus = (string) content.GetValueForProperty("TaskStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskStatus, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -116,11 +116,11 @@ internal JobSubTask(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTaskAdditionalDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskId = (int) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskProgress = (string) content.GetValueForProperty("TaskProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskProgress, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskStatus = (string) content.GetValueForProperty("TaskStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal)this).TaskStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTaskAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskId = (int) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskProgress = (string) content.GetValueForProperty("TaskProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskProgress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskStatus = (string) content.GetValueForProperty("TaskStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal)this).TaskStatus, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTask.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/JobSubTask.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTask.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/JobSubTask.TypeConverter.cs index 883f98d474fb..84b3a7eaa5a3 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTask.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobSubTask.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTask.cs b/src/DataProtection/generated/api/Models/Api202101/JobSubTask.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTask.cs rename to src/DataProtection/generated/api/Models/Api202101/JobSubTask.cs index d98ef3f28aff..615fa9f770e8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTask.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobSubTask.cs @@ -1,22 +1,22 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Details of Job's Sub Task public partial class JobSubTask : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails _additionalDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails _additionalDetail; /// Additional details of Sub Tasks [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails AdditionalDetail { get => (this._additionalDetail = this._additionalDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTaskAdditionalDetails()); set => this._additionalDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails AdditionalDetail { get => (this._additionalDetail = this._additionalDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTaskAdditionalDetails()); set => this._additionalDetail = value; } /// Internal Acessors for TaskProgress - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskInternal.TaskProgress { get => this._taskProgress; set { {_taskProgress = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskInternal.TaskProgress { get => this._taskProgress; set { {_taskProgress = value;} } } /// Backing field for property. private int _taskId; @@ -62,8 +62,8 @@ public partial interface IJobSubTask : ReadOnly = false, Description = @"Additional details of Sub Tasks", SerializedName = @"additionalDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails AdditionalDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails AdditionalDetail { get; set; } /// Task Id of the Sub Task [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -103,7 +103,7 @@ internal partial interface IJobSubTaskInternal { /// Additional details of Sub Tasks - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails AdditionalDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails AdditionalDetail { get; set; } /// Task Id of the Sub Task int TaskId { get; set; } /// Name of the Sub Task diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTask.json.cs b/src/DataProtection/generated/api/Models/Api202101/JobSubTask.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTask.json.cs rename to src/DataProtection/generated/api/Models/Api202101/JobSubTask.json.cs index a7336e9297f9..4ee2f4ae7e61 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTask.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobSubTask.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class JobSubTask partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTask FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new JobSubTask(json) : null; } @@ -70,7 +70,7 @@ internal JobSubTask(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Js { return; } - {_additionalDetail = If( json?.PropertyT("additionalDetails"), out var __jsonAdditionalDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTaskAdditionalDetails.FromJson(__jsonAdditionalDetails) : AdditionalDetail;} + {_additionalDetail = If( json?.PropertyT("additionalDetails"), out var __jsonAdditionalDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTaskAdditionalDetails.FromJson(__jsonAdditionalDetails) : AdditionalDetail;} {_taskId = If( json?.PropertyT("taskId"), out var __jsonTaskId) ? (int)__jsonTaskId : TaskId;} {_taskName = If( json?.PropertyT("taskName"), out var __jsonTaskName) ? (string)__jsonTaskName : (string)TaskName;} {_taskProgress = If( json?.PropertyT("taskProgress"), out var __jsonTaskProgress) ? (string)__jsonTaskProgress : (string)TaskProgress;} diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.PowerShell.cs index 4fefc0d9c58d..da4993b10ba1 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class JobSubTaskAdditionalDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobSubTaskAdditionalDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobSubTaskAdditionalDetails(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal JobSubTaskAdditionalDetails(global::System.Collections.IDictionary cont } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.TypeConverter.cs index dcfd4acca1f5..5db339d7430e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.cs b/src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.cs rename to src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.cs index f8515e701c28..49e60bd67783 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Additional details of Sub Tasks public partial class JobSubTaskAdditionalDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetailsInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.dictionary.cs b/src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.dictionary.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.dictionary.cs rename to src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.dictionary.cs index 057de614676a..bf7a6c1eb837 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,6 +65,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTaskAdditionalDetails source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.JobSubTaskAdditionalDetails source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.json.cs b/src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.json.cs rename to src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.json.cs index 35c5892f3902..15fe07aad7a4 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobSubTaskAdditionalDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/JobSubTaskAdditionalDetails.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class JobSubTaskAdditionalDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTaskAdditionalDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IJobSubTaskAdditionalDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new JobSubTaskAdditionalDetails(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationExtendedInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/OperationExtendedInfo.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210201Preview/OperationExtendedInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/OperationExtendedInfo.PowerShell.cs index e9228d7f707a..d1d73be1c78e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationExtendedInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/OperationExtendedInfo.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class OperationExtendedInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationExtendedInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationExtendedInfo(content); } @@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,12 +94,12 @@ internal OperationExtendedInfo(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -114,7 +112,7 @@ internal OperationExtendedInfo(global::System.Management.Automation.PSObject con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationExtendedInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/OperationExtendedInfo.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/OperationExtendedInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/OperationExtendedInfo.TypeConverter.cs index 13065bbc16a2..704b844987e8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationExtendedInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/OperationExtendedInfo.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationExtendedInfo.cs b/src/DataProtection/generated/api/Models/Api202101/OperationExtendedInfo.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/OperationExtendedInfo.cs rename to src/DataProtection/generated/api/Models/Api202101/OperationExtendedInfo.cs index 817ee6a2e6a3..1fe38468aeec 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationExtendedInfo.cs +++ b/src/DataProtection/generated/api/Models/Api202101/OperationExtendedInfo.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Operation Extended Info public partial class OperationExtendedInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationExtendedInfo.json.cs b/src/DataProtection/generated/api/Models/Api202101/OperationExtendedInfo.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/OperationExtendedInfo.json.cs rename to src/DataProtection/generated/api/Models/Api202101/OperationExtendedInfo.json.cs index f23317f33262..98ce19a64b86 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationExtendedInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/OperationExtendedInfo.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class OperationExtendedInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new OperationExtendedInfo(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationJobExtendedInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/OperationJobExtendedInfo.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210201Preview/OperationJobExtendedInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/OperationJobExtendedInfo.PowerShell.cs index b9d7ee5bb315..5bae5332b3e6 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationJobExtendedInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/OperationJobExtendedInfo.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class OperationJobExtendedInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationJobExtendedInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationJobExtendedInfo(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,13 +96,13 @@ internal OperationJobExtendedInfo(global::System.Collections.IDictionary content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfoInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfoInternal)this).JobId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfoInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfoInternal)this).JobId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -115,8 +115,8 @@ internal OperationJobExtendedInfo(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfoInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfoInternal)this).JobId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfoInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfoInternal)this).JobId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationJobExtendedInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/OperationJobExtendedInfo.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/OperationJobExtendedInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/OperationJobExtendedInfo.TypeConverter.cs index 2c3d8e80bc5c..27327b22d408 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationJobExtendedInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/OperationJobExtendedInfo.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationJobExtendedInfo.cs b/src/DataProtection/generated/api/Models/Api202101/OperationJobExtendedInfo.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210201Preview/OperationJobExtendedInfo.cs rename to src/DataProtection/generated/api/Models/Api202101/OperationJobExtendedInfo.cs index df545c5cbcf7..b5cccdb65b92 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationJobExtendedInfo.cs +++ b/src/DataProtection/generated/api/Models/Api202101/OperationJobExtendedInfo.cs @@ -1,18 +1,18 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Operation Job Extended Info public partial class OperationJobExtendedInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo __operationExtendedInfo = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationExtendedInfo(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo __operationExtendedInfo = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationExtendedInfo(); /// Backing field for property. private string _jobId; @@ -25,7 +25,7 @@ public partial class OperationJobExtendedInfo : /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal)__operationExtendedInfo).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal)__operationExtendedInfo).ObjectType = value ?? null; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal)__operationExtendedInfo).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal)__operationExtendedInfo).ObjectType = value ?? null; } /// Creates an new instance. public OperationJobExtendedInfo() @@ -48,7 +48,7 @@ public OperationJobExtendedInfo() /// Operation Job Extended Info public partial interface IOperationJobExtendedInfo : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo { /// Arm Id of the job created for this operation. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -62,7 +62,7 @@ public partial interface IOperationJobExtendedInfo : } /// Operation Job Extended Info internal partial interface IOperationJobExtendedInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal { /// Arm Id of the job created for this operation. string JobId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationJobExtendedInfo.json.cs b/src/DataProtection/generated/api/Models/Api202101/OperationJobExtendedInfo.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/OperationJobExtendedInfo.json.cs rename to src/DataProtection/generated/api/Models/Api202101/OperationJobExtendedInfo.json.cs index 7e8756057a64..46aa9167651f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationJobExtendedInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/OperationJobExtendedInfo.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class OperationJobExtendedInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new OperationJobExtendedInfo(json) : null; } @@ -70,7 +70,7 @@ internal OperationJobExtendedInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - __operationExtendedInfo = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationExtendedInfo(json); + __operationExtendedInfo = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationExtendedInfo(json); {_jobId = If( json?.PropertyT("jobId"), out var __jsonJobId) ? (string)__jsonJobId : (string)JobId;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api202101/OperationResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/OperationResource.PowerShell.cs new file mode 100644 index 000000000000..6002ea427f98 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/OperationResource.PowerShell.cs @@ -0,0 +1,155 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Operation Resource + [System.ComponentModel.TypeConverter(typeof(OperationResourceTypeConverter))] + public partial class OperationResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OperationResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OperationResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OperationResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).ObjectType, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal OperationResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal)this).ObjectType, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Operation Resource + [System.ComponentModel.TypeConverter(typeof(OperationResourceTypeConverter))] + public partial interface IOperationResource + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/OperationResource.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/OperationResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/OperationResource.TypeConverter.cs index 6c0327956b78..28852aaf5c60 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/OperationResource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationResource.cs b/src/DataProtection/generated/api/Models/Api202101/OperationResource.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210201Preview/OperationResource.cs rename to src/DataProtection/generated/api/Models/Api202101/OperationResource.cs index 40deeb549f4b..f0778ca8211b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationResource.cs +++ b/src/DataProtection/generated/api/Models/Api202101/OperationResource.cs @@ -1,24 +1,24 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Operation Resource public partial class OperationResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal { /// The error additional info. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).AdditionalInfo; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Code; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Code; } /// The error details. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Detail; } /// Backing field for property. private global::System.DateTime? _endTime; @@ -28,7 +28,7 @@ public partial class OperationResource : public global::System.DateTime? EndTime { get => this._endTime; set => this._endTime = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError _error; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError _error; /// /// Required if status == failed or status == canceled. This is the OData v4 error format, used by the RPC and will go into @@ -36,7 +36,7 @@ public partial class OperationResource : /// The full set of optional properties (e.g. inner errors / details) can be found in the "Error Response" section. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Error()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Error()); set => this._error = value; } /// Backing field for property. private string _id; @@ -47,28 +47,28 @@ public partial class OperationResource : /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Message; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).AdditionalInfo = value; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Code = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Error()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Error()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Message = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationExtendedInfo()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationExtendedInfo()); set { {_property = value;} } } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResourceInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Target = value; } /// Backing field for property. private string _name; @@ -83,14 +83,14 @@ public partial class OperationResource : /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfoInternal)Property).ObjectType = value ?? null; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfoInternal)Property).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo _property; /// End time of the operation [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationExtendedInfo()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationExtendedInfo()); set => this._property = value; } /// Backing field for property. private global::System.DateTime? _startTime; @@ -107,7 +107,7 @@ public partial class OperationResource : /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorInternal)Error).Target; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorInternal)Error).Target; } /// Creates an new instance. public OperationResource() @@ -125,8 +125,8 @@ public partial interface IOperationResource : ReadOnly = true, Description = @"The error additional info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[] AdditionalInfo { get; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -141,8 +141,8 @@ public partial interface IOperationResource : ReadOnly = true, Description = @"The error details.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[] Detail { get; } /// End time of the operation [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -218,11 +218,11 @@ internal partial interface IOperationResourceInternal { /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError[] Detail { get; set; } /// End time of the operation global::System.DateTime? EndTime { get; set; } /// @@ -230,7 +230,7 @@ internal partial interface IOperationResourceInternal /// the v2.2 Azure REST API guidelines. /// The full set of optional properties (e.g. inner errors / details) can be found in the "Error Response" section. /// - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IError Error { get; set; } /// It should match what is used to GET the operation result string Id { get; set; } /// The error message. @@ -244,7 +244,7 @@ internal partial interface IOperationResourceInternal /// string ObjectType { get; set; } /// End time of the operation - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationExtendedInfo Property { get; set; } /// Start time of the operation global::System.DateTime? StartTime { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationResource.json.cs b/src/DataProtection/generated/api/Models/Api202101/OperationResource.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/OperationResource.json.cs rename to src/DataProtection/generated/api/Models/Api202101/OperationResource.json.cs index 2fcce3e7964d..44b1d2b8ecad 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/OperationResource.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class OperationResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new OperationResource(json) : null; } @@ -70,8 +70,8 @@ internal OperationResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Run { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Error.FromJson(__jsonError) : Error;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationExtendedInfo.FromJson(__jsonProperties) : Property;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Error.FromJson(__jsonError) : Error;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.OperationExtendedInfo.FromJson(__jsonProperties) : Property;} {_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;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInput.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInput.PowerShell.cs similarity index 60% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInput.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInput.PowerShell.cs index e6b2349afa3b..a27d5cd3ac34 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInput.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInput.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class PatchResourceRequestInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PatchResourceRequestInput(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PatchResourceRequestInput(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,16 +96,16 @@ internal PatchResourceRequestInput(global::System.Collections.IDictionary conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PatchResourceRequestInputTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PatchResourceRequestInputTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).IdentityType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -118,11 +118,11 @@ internal PatchResourceRequestInput(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PatchResourceRequestInputTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PatchResourceRequestInputTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal)this).IdentityType, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInput.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInput.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInput.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInput.TypeConverter.cs index 963c0a336936..f8f0499adab6 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInput.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInput.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInput.cs b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInput.cs similarity index 70% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInput.cs rename to src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInput.cs index 5c532cba41ca..e7738cbd8937 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInput.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInput.cs @@ -1,52 +1,52 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Patch Request content for Microsoft.DataProtection resources public partial class PatchResourceRequestInput : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails _identity; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails _identity; /// Input Managed Identity Details [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetails()); set => this._identity = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetails()); set => this._identity = value; } /// /// The object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure /// resource. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).PrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).PrincipalId; } /// /// A Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).TenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).TenantId; } /// The identityType which can be either SystemAssigned or None [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).Type = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).Type = value ?? null; } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetails()); set { {_identity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetails()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).PrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetailsInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetailsInternal)Identity).TenantId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PatchResourceRequestInputTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PatchResourceRequestInputTags()); set => this._tag = value; } /// Creates an new instance. public PatchResourceRequestInput() @@ -93,8 +93,8 @@ public partial interface IPatchResourceRequestInput : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags Tag { get; set; } } /// Patch Request content for Microsoft.DataProtection resources @@ -102,7 +102,7 @@ internal partial interface IPatchResourceRequestInputInternal { /// Input Managed Identity Details - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails Identity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppIdentityDetails Identity { get; set; } /// /// The object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure /// resource. @@ -115,7 +115,7 @@ internal partial interface IPatchResourceRequestInputInternal /// The identityType which can be either SystemAssigned or None string IdentityType { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInput.json.cs b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInput.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInput.json.cs rename to src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInput.json.cs index 7db7a72fd664..abf3af97d064 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInput.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInput.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class PatchResourceRequestInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new PatchResourceRequestInput(json) : null; } @@ -70,8 +70,8 @@ internal PatchResourceRequestInput(Microsoft.Azure.PowerShell.Cmdlets.DataProtec { return; } - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetails.FromJson(__jsonIdentity) : Identity;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PatchResourceRequestInputTags.FromJson(__jsonTags) : Tag;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DppIdentityDetails.FromJson(__jsonIdentity) : Identity;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PatchResourceRequestInputTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.PowerShell.cs index dbd29074e008..a3b48616a682 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class PatchResourceRequestInputTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PatchResourceRequestInputTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PatchResourceRequestInputTags(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal PatchResourceRequestInputTags(global::System.Collections.IDictionary co } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.TypeConverter.cs index 619417065e3a..50d23d16558b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.cs b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.cs rename to src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.cs index 215808fc2789..37428df7a9ae 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Resource tags. public partial class PatchResourceRequestInputTags : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTagsInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.dictionary.cs b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.dictionary.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.dictionary.cs rename to src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.dictionary.cs index 54b4bc88a540..78eb08432af2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,6 +65,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PatchResourceRequestInputTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PatchResourceRequestInputTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.json.cs b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.json.cs rename to src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.json.cs index 41c54af536f6..292d5a4ce58f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PatchResourceRequestInputTags.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PatchResourceRequestInputTags.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class PatchResourceRequestInputTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new PatchResourceRequestInputTags(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/PolicyInfo.PowerShell.cs similarity index 70% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PolicyInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/PolicyInfo.PowerShell.cs index a3e6549a00e4..756a1a1e7f30 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PolicyInfo.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,27 +48,27 @@ public partial class PolicyInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PolicyInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PolicyInfo(content); } @@ -78,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -94,14 +94,14 @@ internal PolicyInfo(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal)this).PolicyId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal)this).PolicyVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal)this).PolicyParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters) content.GetValueForProperty("PolicyParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal)this).PolicyParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PolicyParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal)this).PolicyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal)this).PolicyParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters) content.GetValueForProperty("PolicyParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal)this).PolicyParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PolicyParametersTypeConverter.ConvertFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -114,9 +114,9 @@ internal PolicyInfo(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal)this).PolicyId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal)this).PolicyVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal)this).PolicyParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters) content.GetValueForProperty("PolicyParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal)this).PolicyParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PolicyParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal)this).PolicyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal)this).PolicyParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters) content.GetValueForProperty("PolicyParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal)this).PolicyParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PolicyParametersTypeConverter.ConvertFrom); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/PolicyInfo.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PolicyInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/PolicyInfo.TypeConverter.cs index 6c7c1e8821a7..f87d47b14436 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PolicyInfo.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyInfo.cs b/src/DataProtection/generated/api/Models/Api202101/PolicyInfo.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PolicyInfo.cs rename to src/DataProtection/generated/api/Models/Api202101/PolicyInfo.cs index 268fbfe57d79..442896a1cbf8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyInfo.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PolicyInfo.cs @@ -1,15 +1,15 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Policy Info in backupInstance public partial class PolicyInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal { /// Internal Acessors for PolicyVersion - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfoInternal.PolicyVersion { get => this._policyVersion; set { {_policyVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfoInternal.PolicyVersion { get => this._policyVersion; set { {_policyVersion = value;} } } /// Backing field for property. private string _policyId; @@ -18,11 +18,11 @@ public partial class PolicyInfo : public string PolicyId { get => this._policyId; set => this._policyId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters _policyParameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters _policyParameter; /// Policy parameters for the backup instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters PolicyParameter { get => (this._policyParameter = this._policyParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PolicyParameters()); set => this._policyParameter = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters PolicyParameter { get => (this._policyParameter = this._policyParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PolicyParameters()); set => this._policyParameter = value; } /// Backing field for property. private string _policyVersion; @@ -53,8 +53,8 @@ public partial interface IPolicyInfo : ReadOnly = false, Description = @"Policy parameters for the backup instance", SerializedName = @"policyParameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters PolicyParameter { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters PolicyParameter { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -71,7 +71,7 @@ internal partial interface IPolicyInfoInternal { string PolicyId { get; set; } /// Policy parameters for the backup instance - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters PolicyParameter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters PolicyParameter { get; set; } string PolicyVersion { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyInfo.json.cs b/src/DataProtection/generated/api/Models/Api202101/PolicyInfo.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PolicyInfo.json.cs rename to src/DataProtection/generated/api/Models/Api202101/PolicyInfo.json.cs index 2f0d031028f7..cd790c5b92e0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PolicyInfo.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class PolicyInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new PolicyInfo(json) : null; } @@ -72,7 +72,7 @@ internal PolicyInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Js } {_policyId = If( json?.PropertyT("policyId"), out var __jsonPolicyId) ? (string)__jsonPolicyId : (string)PolicyId;} {_policyVersion = If( json?.PropertyT("policyVersion"), out var __jsonPolicyVersion) ? (string)__jsonPolicyVersion : (string)PolicyVersion;} - {_policyParameter = If( json?.PropertyT("policyParameters"), out var __jsonPolicyParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PolicyParameters.FromJson(__jsonPolicyParameters) : PolicyParameter;} + {_policyParameter = If( json?.PropertyT("policyParameters"), out var __jsonPolicyParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PolicyParameters.FromJson(__jsonPolicyParameters) : PolicyParameter;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/PolicyParameters.PowerShell.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PolicyParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/PolicyParameters.PowerShell.cs index 5c9f960836d8..360340b27473 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PolicyParameters.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class PolicyParameters partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PolicyParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PolicyParameters(content); } @@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,12 +94,12 @@ internal PolicyParameters(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParametersInternal)this).DataStoreParametersList = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters[]) content.GetValueForProperty("DataStoreParametersList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParametersInternal)this).DataStoreParametersList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreParametersTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParametersInternal)this).DataStoreParametersList = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters[]) content.GetValueForProperty("DataStoreParametersList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParametersInternal)this).DataStoreParametersList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreParametersTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -114,7 +112,7 @@ internal PolicyParameters(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParametersInternal)this).DataStoreParametersList = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters[]) content.GetValueForProperty("DataStoreParametersList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParametersInternal)this).DataStoreParametersList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreParametersTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParametersInternal)this).DataStoreParametersList = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters[]) content.GetValueForProperty("DataStoreParametersList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParametersInternal)this).DataStoreParametersList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreParametersTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/PolicyParameters.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PolicyParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/PolicyParameters.TypeConverter.cs index b36952a5e66b..9aa7933d599f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PolicyParameters.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyParameters.cs b/src/DataProtection/generated/api/Models/Api202101/PolicyParameters.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PolicyParameters.cs rename to src/DataProtection/generated/api/Models/Api202101/PolicyParameters.cs index 459a90b6873f..862d305899fe 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyParameters.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PolicyParameters.cs @@ -1,19 +1,19 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Parameters in Policy public partial class PolicyParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParametersInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters[] _dataStoreParametersList; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters[] _dataStoreParametersList; /// Gets or sets the DataStore Parameters [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters[] DataStoreParametersList { get => this._dataStoreParametersList; set => this._dataStoreParametersList = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters[] DataStoreParametersList { get => this._dataStoreParametersList; set => this._dataStoreParametersList = value; } /// Creates an new instance. public PolicyParameters() @@ -31,8 +31,8 @@ public partial interface IPolicyParameters : ReadOnly = false, Description = @"Gets or sets the DataStore Parameters", SerializedName = @"dataStoreParametersList", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters[] DataStoreParametersList { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters[] DataStoreParametersList { get; set; } } /// Parameters in Policy @@ -40,7 +40,7 @@ internal partial interface IPolicyParametersInternal { /// Gets or sets the DataStore Parameters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters[] DataStoreParametersList { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters[] DataStoreParametersList { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyParameters.json.cs b/src/DataProtection/generated/api/Models/Api202101/PolicyParameters.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210201Preview/PolicyParameters.json.cs rename to src/DataProtection/generated/api/Models/Api202101/PolicyParameters.json.cs index ddd40bc56bb8..f38b9f9768a0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/PolicyParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/PolicyParameters.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class PolicyParameters partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPolicyParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new PolicyParameters(json) : null; } @@ -70,7 +70,7 @@ internal PolicyParameters(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt { return; } - {_dataStoreParametersList = If( json?.PropertyT("dataStoreParametersList"), out var __jsonDataStoreParametersList) ? If( __jsonDataStoreParametersList as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreParameters) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreParameters.FromJson(__u) )) ))() : null : DataStoreParametersList;} + {_dataStoreParametersList = If( json?.PropertyT("dataStoreParametersList"), out var __jsonDataStoreParametersList) ? If( __jsonDataStoreParametersList as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreParameters) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreParameters.FromJson(__u) )) ))() : null : DataStoreParametersList;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ProtectionStatusDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ProtectionStatusDetails.PowerShell.cs similarity index 71% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ProtectionStatusDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/ProtectionStatusDetails.PowerShell.cs index 9503643b6554..f390dafb8f82 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ProtectionStatusDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ProtectionStatusDetails.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class ProtectionStatusDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProtectionStatusDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProtectionStatusDetails(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,13 +96,13 @@ internal ProtectionStatusDetails(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetailsInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetailsInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetailsInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetailsInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status.CreateFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -115,8 +115,8 @@ internal ProtectionStatusDetails(global::System.Management.Automation.PSObject c return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetailsInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetailsInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetailsInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetailsInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status.CreateFrom); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ProtectionStatusDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ProtectionStatusDetails.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ProtectionStatusDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ProtectionStatusDetails.TypeConverter.cs index efbcd4b7cb57..fa8b69d445cb 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ProtectionStatusDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ProtectionStatusDetails.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ProtectionStatusDetails.cs b/src/DataProtection/generated/api/Models/Api202101/ProtectionStatusDetails.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ProtectionStatusDetails.cs rename to src/DataProtection/generated/api/Models/Api202101/ProtectionStatusDetails.cs index 69c138b8758f..64919dd75da3 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ProtectionStatusDetails.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ProtectionStatusDetails.cs @@ -1,19 +1,19 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Protection status details public partial class ProtectionStatusDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError _errorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError _errorDetail; /// Specifies the protection status error of the resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingError()); set => this._errorDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingError()); set => this._errorDetail = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status? _status; @@ -38,8 +38,8 @@ public partial interface IProtectionStatusDetails : ReadOnly = false, Description = @"Specifies the protection status error of the resource", SerializedName = @"errorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError ErrorDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError ErrorDetail { get; set; } /// Specifies the protection status of the resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -55,7 +55,7 @@ internal partial interface IProtectionStatusDetailsInternal { /// Specifies the protection status error of the resource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError ErrorDetail { get; set; } /// Specifies the protection status of the resource Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status? Status { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ProtectionStatusDetails.json.cs b/src/DataProtection/generated/api/Models/Api202101/ProtectionStatusDetails.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ProtectionStatusDetails.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ProtectionStatusDetails.json.cs index 3a4823c0ba72..cd8e155ff29d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ProtectionStatusDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ProtectionStatusDetails.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class ProtectionStatusDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IProtectionStatusDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ProtectionStatusDetails(json) : null; } @@ -70,7 +70,7 @@ internal ProtectionStatusDetails(Microsoft.Azure.PowerShell.Cmdlets.DataProtecti { return; } - {_errorDetail = If( json?.PropertyT("errorDetails"), out var __jsonErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingError.FromJson(__jsonErrorDetails) : ErrorDetail;} + {_errorDetail = If( json?.PropertyT("errorDetails"), out var __jsonErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingError.FromJson(__jsonErrorDetails) : ErrorDetail;} {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api202101/RangeBasedItemLevelRestoreCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/RangeBasedItemLevelRestoreCriteria.PowerShell.cs new file mode 100644 index 000000000000..e670c901ceba --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/RangeBasedItemLevelRestoreCriteria.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Item Level target info for restore operation + [System.ComponentModel.TypeConverter(typeof(RangeBasedItemLevelRestoreCriteriaTypeConverter))] + public partial class RangeBasedItemLevelRestoreCriteria + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RangeBasedItemLevelRestoreCriteria(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RangeBasedItemLevelRestoreCriteria(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RangeBasedItemLevelRestoreCriteria(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue = (string) content.GetValueForProperty("MinMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue = (string) content.GetValueForProperty("MaxMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RangeBasedItemLevelRestoreCriteria(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue = (string) content.GetValueForProperty("MinMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue = (string) content.GetValueForProperty("MaxMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Item Level target info for restore operation + [System.ComponentModel.TypeConverter(typeof(RangeBasedItemLevelRestoreCriteriaTypeConverter))] + public partial interface IRangeBasedItemLevelRestoreCriteria + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api202101/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs new file mode 100644 index 000000000000..429f41be2933 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RangeBasedItemLevelRestoreCriteriaTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter to the parameter using and + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteria ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteria).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RangeBasedItemLevelRestoreCriteria.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RangeBasedItemLevelRestoreCriteria.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RangeBasedItemLevelRestoreCriteria.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api202101/RangeBasedItemLevelRestoreCriteria.cs b/src/DataProtection/generated/api/Models/Api202101/RangeBasedItemLevelRestoreCriteria.cs new file mode 100644 index 000000000000..40df84371c79 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/RangeBasedItemLevelRestoreCriteria.cs @@ -0,0 +1,86 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Item Level target info for restore operation + public partial class RangeBasedItemLevelRestoreCriteria : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteriaInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ItemLevelRestoreCriteria(); + + /// Backing field for property. + private string _maxMatchingValue; + + /// maximum value for range prefix match + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string MaxMatchingValue { get => this._maxMatchingValue; set => this._maxMatchingValue = value; } + + /// Backing field for property. + private string _minMatchingValue; + + /// minimum value for range prefix match + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string MinMatchingValue { get => this._minMatchingValue; set => this._minMatchingValue = value; } + + /// Type of the specific object - used for deserializing + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType = value ; } + + /// Creates an new instance. + public RangeBasedItemLevelRestoreCriteria() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__itemLevelRestoreCriteria), __itemLevelRestoreCriteria); + await eventListener.AssertObjectIsValid(nameof(__itemLevelRestoreCriteria), __itemLevelRestoreCriteria); + } + } + /// Item Level target info for restore operation + public partial interface IRangeBasedItemLevelRestoreCriteria : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteria + { + /// maximum value for range prefix match + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"maximum value for range prefix match", + SerializedName = @"maxMatchingValue", + PossibleTypes = new [] { typeof(string) })] + string MaxMatchingValue { get; set; } + /// minimum value for range prefix match + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"minimum value for range prefix match", + SerializedName = @"minMatchingValue", + PossibleTypes = new [] { typeof(string) })] + string MinMatchingValue { get; set; } + + } + /// Item Level target info for restore operation + internal partial interface IRangeBasedItemLevelRestoreCriteriaInternal : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IItemLevelRestoreCriteriaInternal + { + /// maximum value for range prefix match + string MaxMatchingValue { get; set; } + /// minimum value for range prefix match + string MinMatchingValue { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api202101/RangeBasedItemLevelRestoreCriteria.json.cs b/src/DataProtection/generated/api/Models/Api202101/RangeBasedItemLevelRestoreCriteria.json.cs new file mode 100644 index 000000000000..dea7b5003b50 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/RangeBasedItemLevelRestoreCriteria.json.cs @@ -0,0 +1,106 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Item Level target info for restore operation + public partial class RangeBasedItemLevelRestoreCriteria + { + + /// + /// 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.DataProtection.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.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.DataProtection.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.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteria. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteria. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRangeBasedItemLevelRestoreCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new RangeBasedItemLevelRestoreCriteria(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject instance to deserialize from. + internal RangeBasedItemLevelRestoreCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ItemLevelRestoreCriteria(json); + {_minMatchingValue = If( json?.PropertyT("minMatchingValue"), out var __jsonMinMatchingValue) ? (string)__jsonMinMatchingValue : (string)MinMatchingValue;} + {_maxMatchingValue = If( json?.PropertyT("maxMatchingValue"), out var __jsonMaxMatchingValue) ? (string)__jsonMaxMatchingValue : (string)MaxMatchingValue;} + 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.DataProtection.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __itemLevelRestoreCriteria?.ToJson(container, serializationMode); + AddIf( null != (((object)this._minMatchingValue)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._minMatchingValue.ToString()) : null, "minMatchingValue" ,container.Add ); + AddIf( null != (((object)this._maxMatchingValue)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._maxMatchingValue.ToString()) : null, "maxMatchingValue" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointDataStoreDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointDataStoreDetails.PowerShell.cs similarity index 50% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointDataStoreDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/RecoveryPointDataStoreDetails.PowerShell.cs index 5fa2a4cdb458..67f4fa2a2595 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointDataStoreDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointDataStoreDetails.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class RecoveryPointDataStoreDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryPointDataStoreDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPointDataStoreDetails(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,20 +96,20 @@ internal RecoveryPointDataStoreDetails(global::System.Collections.IDictionary co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).CreationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).MetaData = (string) content.GetValueForProperty("MetaData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).MetaData, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).State, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).Visible = (bool?) content.GetValueForProperty("Visible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).Visible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime = (global::System.DateTime?) content.GetValueForProperty("RehydrationExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus?) content.GetValueForProperty("RehydrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).CreationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).MetaData = (string) content.GetValueForProperty("MetaData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).MetaData, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).Visible = (bool?) content.GetValueForProperty("Visible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).Visible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime = (global::System.DateTime?) content.GetValueForProperty("RehydrationExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus?) content.GetValueForProperty("RehydrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus.CreateFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -122,15 +122,15 @@ internal RecoveryPointDataStoreDetails(global::System.Management.Automation.PSOb return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).CreationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).MetaData = (string) content.GetValueForProperty("MetaData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).MetaData, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).State, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).Visible = (bool?) content.GetValueForProperty("Visible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).Visible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime = (global::System.DateTime?) content.GetValueForProperty("RehydrationExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus?) content.GetValueForProperty("RehydrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).CreationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).MetaData = (string) content.GetValueForProperty("MetaData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).MetaData, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).Visible = (bool?) content.GetValueForProperty("Visible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).Visible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime = (global::System.DateTime?) content.GetValueForProperty("RehydrationExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus?) content.GetValueForProperty("RehydrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus.CreateFrom); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointDataStoreDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointDataStoreDetails.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointDataStoreDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/RecoveryPointDataStoreDetails.TypeConverter.cs index 5cc28687f309..100f164141e5 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointDataStoreDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointDataStoreDetails.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointDataStoreDetails.cs b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointDataStoreDetails.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointDataStoreDetails.cs rename to src/DataProtection/generated/api/Models/Api202101/RecoveryPointDataStoreDetails.cs index c63d3604be2c..a571d9992266 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointDataStoreDetails.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointDataStoreDetails.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// RecoveryPoint datastore details public partial class RecoveryPointDataStoreDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal { /// Backing field for property. @@ -33,10 +33,10 @@ public partial class RecoveryPointDataStoreDetails : public string MetaData { get => this._metaData; set => this._metaData = value; } /// Internal Acessors for RehydrationExpiryTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal.RehydrationExpiryTime { get => this._rehydrationExpiryTime; set { {_rehydrationExpiryTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal.RehydrationExpiryTime { get => this._rehydrationExpiryTime; set { {_rehydrationExpiryTime = value;} } } /// Internal Acessors for RehydrationStatus - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetailsInternal.RehydrationStatus { get => this._rehydrationStatus; set { {_rehydrationStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetailsInternal.RehydrationStatus { get => this._rehydrationStatus; set { {_rehydrationStatus = value;} } } /// Backing field for property. private global::System.DateTime? _rehydrationExpiryTime; diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointDataStoreDetails.json.cs b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointDataStoreDetails.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointDataStoreDetails.json.cs rename to src/DataProtection/generated/api/Models/Api202101/RecoveryPointDataStoreDetails.json.cs index 4ffe542e9b10..abb38d07022c 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointDataStoreDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointDataStoreDetails.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class RecoveryPointDataStoreDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointDataStoreDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new RecoveryPointDataStoreDetails(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointsFilters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointsFilters.PowerShell.cs similarity index 60% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointsFilters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/RecoveryPointsFilters.PowerShell.cs index 105471ab67c9..e78ef9fe2621 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointsFilters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointsFilters.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -47,29 +47,27 @@ public partial class RecoveryPointsFilters partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFilters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFilters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryPointsFilters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFilters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFilters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPointsFilters(content); } @@ -79,10 +77,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFilters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFilters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -95,17 +93,17 @@ internal RecoveryPointsFilters(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId = (string) content.GetValueForProperty("RestorePointDataStoreId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).IsVisible = (bool?) content.GetValueForProperty("IsVisible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).IsVisible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).StartDate = (string) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).StartDate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).EndDate = (string) content.GetValueForProperty("EndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).EndDate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).ExtendedInfo = (bool?) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).ExtendedInfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).RestorePointState = (string) content.GetValueForProperty("RestorePointState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).RestorePointState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId = (string) content.GetValueForProperty("RestorePointDataStoreId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).IsVisible = (bool?) content.GetValueForProperty("IsVisible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).IsVisible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).StartDate = (string) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).StartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).EndDate = (string) content.GetValueForProperty("EndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).EndDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).ExtendedInfo = (bool?) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).ExtendedInfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).RestorePointState = (string) content.GetValueForProperty("RestorePointState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).RestorePointState, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -118,12 +116,12 @@ internal RecoveryPointsFilters(global::System.Management.Automation.PSObject con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId = (string) content.GetValueForProperty("RestorePointDataStoreId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).IsVisible = (bool?) content.GetValueForProperty("IsVisible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).IsVisible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).StartDate = (string) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).StartDate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).EndDate = (string) content.GetValueForProperty("EndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).EndDate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).ExtendedInfo = (bool?) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).ExtendedInfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).RestorePointState = (string) content.GetValueForProperty("RestorePointState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal)this).RestorePointState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId = (string) content.GetValueForProperty("RestorePointDataStoreId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).IsVisible = (bool?) content.GetValueForProperty("IsVisible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).IsVisible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).StartDate = (string) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).StartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).EndDate = (string) content.GetValueForProperty("EndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).EndDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).ExtendedInfo = (bool?) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).ExtendedInfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).RestorePointState = (string) content.GetValueForProperty("RestorePointState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal)this).RestorePointState, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointsFilters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointsFilters.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointsFilters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/RecoveryPointsFilters.TypeConverter.cs index 39b64d3c65f9..ee2ca493dfa2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointsFilters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointsFilters.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFilters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFilters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFilters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFilters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointsFilters.cs b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointsFilters.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointsFilters.cs rename to src/DataProtection/generated/api/Models/Api202101/RecoveryPointsFilters.cs index 7b98a97a1201..5e2387bc5a14 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointsFilters.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointsFilters.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class RecoveryPointsFilters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFilters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFiltersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFilters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFiltersInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointsFilters.json.cs b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointsFilters.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointsFilters.json.cs rename to src/DataProtection/generated/api/Models/Api202101/RecoveryPointsFilters.json.cs index 523c98448025..a867c98a7443 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RecoveryPointsFilters.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RecoveryPointsFilters.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -46,13 +46,13 @@ public partial class RecoveryPointsFilters partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFilters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFilters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFilters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFilters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointsFilters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRecoveryPointsFilters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new RecoveryPointsFilters(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestorableTimeRange.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/RestorableTimeRange.PowerShell.cs similarity index 71% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestorableTimeRange.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/RestorableTimeRange.PowerShell.cs index 80766c5dc781..57dfa3254b98 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestorableTimeRange.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestorableTimeRange.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -47,29 +47,27 @@ public partial class RestorableTimeRange partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RestorableTimeRange(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestorableTimeRange(content); } @@ -79,10 +77,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -95,14 +93,14 @@ internal RestorableTimeRange(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRangeInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRangeInternal)this).StartTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRangeInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRangeInternal)this).EndTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRangeInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRangeInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRangeInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRangeInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRangeInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRangeInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRangeInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRangeInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -115,9 +113,9 @@ internal RestorableTimeRange(global::System.Management.Automation.PSObject conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRangeInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRangeInternal)this).StartTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRangeInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRangeInternal)this).EndTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRangeInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRangeInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRangeInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRangeInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRangeInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRangeInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRangeInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRangeInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestorableTimeRange.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/RestorableTimeRange.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestorableTimeRange.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/RestorableTimeRange.TypeConverter.cs index c48f4eeb5c6c..5eaa8f8cf415 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestorableTimeRange.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestorableTimeRange.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestorableTimeRange.cs b/src/DataProtection/generated/api/Models/Api202101/RestorableTimeRange.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestorableTimeRange.cs rename to src/DataProtection/generated/api/Models/Api202101/RestorableTimeRange.cs index bb1355155778..d496bc082e91 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestorableTimeRange.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestorableTimeRange.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class RestorableTimeRange : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRangeInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRangeInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestorableTimeRange.json.cs b/src/DataProtection/generated/api/Models/Api202101/RestorableTimeRange.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestorableTimeRange.json.cs rename to src/DataProtection/generated/api/Models/Api202101/RestorableTimeRange.json.cs index f03ec3e38d05..83398e5f746a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestorableTimeRange.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestorableTimeRange.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -46,13 +46,13 @@ public partial class RestorableTimeRange partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestorableTimeRange FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestorableTimeRange FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new RestorableTimeRange(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreFilesTargetInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreFilesTargetInfo.PowerShell.cs similarity index 55% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreFilesTargetInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreFilesTargetInfo.PowerShell.cs index a967264160e6..aaddfd35f66c 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreFilesTargetInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreFilesTargetInfo.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class RestoreFilesTargetInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RestoreFilesTargetInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestoreFilesTargetInfo(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,18 +96,18 @@ internal RestoreFilesTargetInfo(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails) content.GetValueForProperty("TargetDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TargetDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetailFilePrefix = (string) content.GetValueForProperty("TargetDetailFilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetailFilePrefix, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetailUrl = (string) content.GetValueForProperty("TargetDetailUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetailUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetailRestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("TargetDetailRestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetailRestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails) content.GetValueForProperty("TargetDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TargetDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetailFilePrefix = (string) content.GetValueForProperty("TargetDetailFilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetailFilePrefix, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetailUrl = (string) content.GetValueForProperty("TargetDetailUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetailUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetailRestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("TargetDetailRestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetailRestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -120,13 +120,13 @@ internal RestoreFilesTargetInfo(global::System.Management.Automation.PSObject co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails) content.GetValueForProperty("TargetDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TargetDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetailFilePrefix = (string) content.GetValueForProperty("TargetDetailFilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetailFilePrefix, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetailUrl = (string) content.GetValueForProperty("TargetDetailUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetailUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetailRestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("TargetDetailRestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal)this).TargetDetailRestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails) content.GetValueForProperty("TargetDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TargetDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetailFilePrefix = (string) content.GetValueForProperty("TargetDetailFilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetailFilePrefix, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetailUrl = (string) content.GetValueForProperty("TargetDetailUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetailUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetailRestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("TargetDetailRestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal)this).TargetDetailRestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreFilesTargetInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreFilesTargetInfo.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreFilesTargetInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreFilesTargetInfo.TypeConverter.cs index e1b6ddd458e8..15cb62cac526 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreFilesTargetInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreFilesTargetInfo.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreFilesTargetInfo.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreFilesTargetInfo.cs similarity index 72% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreFilesTargetInfo.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreFilesTargetInfo.cs index 659417a6889d..62ddadffe900 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreFilesTargetInfo.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreFilesTargetInfo.cs @@ -1,63 +1,63 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Class encapsulating restore as files target parameters public partial class RestoreFilesTargetInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBase(); /// Internal Acessors for TargetDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfoInternal.TargetDetail { get => (this._targetDetail = this._targetDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TargetDetails()); set { {_targetDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfoInternal.TargetDetail { get => (this._targetDetail = this._targetDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TargetDetails()); set { {_targetDetail = value;} } } /// Internal Acessors for RecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption = value; } /// Type of Datasource object, used to initialize the right inherited type [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType = value ; } /// Recovery Option [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; } + public string RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; } /// Target Restore region [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } + public string RestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails _targetDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails _targetDetail; /// Destination of RestoreAsFiles operation, when destination is not a datasource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails TargetDetail { get => (this._targetDetail = this._targetDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TargetDetails()); set => this._targetDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails TargetDetail { get => (this._targetDetail = this._targetDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TargetDetails()); set => this._targetDetail = value; } /// /// Restore operation may create multiple files inside location pointed by Url /// Below will be the common prefix for all of them /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TargetDetailFilePrefix { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)TargetDetail).FilePrefix; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)TargetDetail).FilePrefix = value ; } + public string TargetDetailFilePrefix { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)TargetDetail).FilePrefix; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)TargetDetail).FilePrefix = value ; } /// /// Denotes the target location where the data will be restored, /// string value for the enum {Microsoft.Internal.AzureBackup.DataProtection.Common.Interface.RestoreTargetLocationType} /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType TargetDetailRestoreTargetLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)TargetDetail).RestoreTargetLocationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)TargetDetail).RestoreTargetLocationType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType TargetDetailRestoreTargetLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)TargetDetail).RestoreTargetLocationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)TargetDetail).RestoreTargetLocationType = value ; } /// /// Url denoting the restore destination. It can point to container / file share etc /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TargetDetailUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)TargetDetail).Url; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)TargetDetail).Url = value ; } + public string TargetDetailUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)TargetDetail).Url; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)TargetDetail).Url = value ; } /// Creates an new instance. public RestoreFilesTargetInfo() @@ -80,7 +80,7 @@ public RestoreFilesTargetInfo() /// Class encapsulating restore as files target parameters public partial interface IRestoreFilesTargetInfo : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase { /// /// Restore operation may create multiple files inside location pointed by Url @@ -120,10 +120,10 @@ public partial interface IRestoreFilesTargetInfo : } /// Class encapsulating restore as files target parameters internal partial interface IRestoreFilesTargetInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal { /// Destination of RestoreAsFiles operation, when destination is not a datasource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails TargetDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails TargetDetail { get; set; } /// /// Restore operation may create multiple files inside location pointed by Url /// Below will be the common prefix for all of them diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreFilesTargetInfo.json.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreFilesTargetInfo.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreFilesTargetInfo.json.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreFilesTargetInfo.json.cs index f82c5f67659d..9b4b9caa2bdc 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreFilesTargetInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreFilesTargetInfo.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class RestoreFilesTargetInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreFilesTargetInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreFilesTargetInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new RestoreFilesTargetInfo(json) : null; } @@ -70,8 +70,8 @@ internal RestoreFilesTargetInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio { return; } - __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBase(json); - {_targetDetail = If( json?.PropertyT("targetDetails"), out var __jsonTargetDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TargetDetails.FromJson(__jsonTargetDetails) : TargetDetail;} + __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBase(json); + {_targetDetail = If( json?.PropertyT("targetDetails"), out var __jsonTargetDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TargetDetails.FromJson(__jsonTargetDetails) : TargetDetail;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreJobRecoveryPointDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreJobRecoveryPointDetails.PowerShell.cs similarity index 72% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreJobRecoveryPointDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreJobRecoveryPointDetails.PowerShell.cs index 9e497f01727b..4443b68097b7 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreJobRecoveryPointDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreJobRecoveryPointDetails.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -47,29 +47,29 @@ public partial class RestoreJobRecoveryPointDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RestoreJobRecoveryPointDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestoreJobRecoveryPointDetails(content); } @@ -79,10 +79,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -95,13 +95,13 @@ internal RestoreJobRecoveryPointDetails(global::System.Collections.IDictionary c return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -114,8 +114,8 @@ internal RestoreJobRecoveryPointDetails(global::System.Management.Automation.PSO return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreJobRecoveryPointDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreJobRecoveryPointDetails.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreJobRecoveryPointDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreJobRecoveryPointDetails.TypeConverter.cs index 1b87f8c8b027..2bfffc4f0ba4 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreJobRecoveryPointDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreJobRecoveryPointDetails.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreJobRecoveryPointDetails.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreJobRecoveryPointDetails.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreJobRecoveryPointDetails.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreJobRecoveryPointDetails.cs index 0e5d49d64022..bcc57c94e56d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreJobRecoveryPointDetails.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreJobRecoveryPointDetails.cs @@ -1,10 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class RestoreJobRecoveryPointDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetailsInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreJobRecoveryPointDetails.json.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreJobRecoveryPointDetails.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreJobRecoveryPointDetails.json.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreJobRecoveryPointDetails.json.cs index 971cd408103f..f46a1155e591 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreJobRecoveryPointDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreJobRecoveryPointDetails.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -46,13 +46,13 @@ public partial class RestoreJobRecoveryPointDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreJobRecoveryPointDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new RestoreJobRecoveryPointDetails(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfo.PowerShell.cs similarity index 60% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfo.PowerShell.cs index 74e72af4e45e..ff55e97a1f19 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfo.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class RestoreTargetInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RestoreTargetInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestoreTargetInfo(content); } @@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,16 +94,16 @@ internal RestoreTargetInfo(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceSetTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -118,11 +116,11 @@ internal RestoreTargetInfo(global::System.Management.Automation.PSObject content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceSetTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfo.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfo.TypeConverter.cs index a5e46e13619a..6b9b934fe229 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfo.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfo.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfo.cs similarity index 65% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfo.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfo.cs index e4119471a70b..343bfe7b1286 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfo.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfo.cs @@ -1,47 +1,47 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Class encapsulating restore target parameters public partial class RestoreTargetInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBase(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource _datasourceInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource _datasourceInfo; /// Information of target DS [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource DatasourceInfo { get => (this._datasourceInfo = this._datasourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Datasource()); set => this._datasourceInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource DatasourceInfo { get => (this._datasourceInfo = this._datasourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Datasource()); set => this._datasourceInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet _datasourceSetInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet _datasourceSetInfo; /// Information of target DS Set [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet DatasourceSetInfo { get => (this._datasourceSetInfo = this._datasourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceSet()); set => this._datasourceSetInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet DatasourceSetInfo { get => (this._datasourceSetInfo = this._datasourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSet()); set => this._datasourceSetInfo = value; } /// Internal Acessors for RecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption = value; } /// Type of Datasource object, used to initialize the right inherited type [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType = value ; } /// Recovery Option [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; } + public string RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; } /// Target Restore region [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string RestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } + public string RestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } /// Creates an new instance. public RestoreTargetInfo() @@ -64,7 +64,7 @@ public RestoreTargetInfo() /// Class encapsulating restore target parameters public partial interface IRestoreTargetInfo : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase { /// Information of target DS [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -72,26 +72,26 @@ public partial interface IRestoreTargetInfo : ReadOnly = false, Description = @"Information of target DS", SerializedName = @"datasourceInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource DatasourceInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource DatasourceInfo { get; set; } /// Information of target DS Set [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, ReadOnly = false, Description = @"Information of target DS Set", SerializedName = @"datasourceSetInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet DatasourceSetInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet DatasourceSetInfo { get; set; } } /// Class encapsulating restore target parameters internal partial interface IRestoreTargetInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal { /// Information of target DS - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource DatasourceInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasource DatasourceInfo { get; set; } /// Information of target DS Set - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet DatasourceSetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDatasourceSet DatasourceSetInfo { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfo.json.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfo.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfo.json.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfo.json.cs index 21fd6ad964a9..ba89f968f058 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfo.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class RestoreTargetInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new RestoreTargetInfo(json) : null; } @@ -70,9 +70,9 @@ internal RestoreTargetInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Run { return; } - __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBase(json); - {_datasourceInfo = If( json?.PropertyT("datasourceInfo"), out var __jsonDatasourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Datasource.FromJson(__jsonDatasourceInfo) : DatasourceInfo;} - {_datasourceSetInfo = If( json?.PropertyT("datasourceSetInfo"), out var __jsonDatasourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceSet.FromJson(__jsonDatasourceSetInfo) : DatasourceSetInfo;} + __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBase(json); + {_datasourceInfo = If( json?.PropertyT("datasourceInfo"), out var __jsonDatasourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Datasource.FromJson(__jsonDatasourceInfo) : DatasourceInfo;} + {_datasourceSetInfo = If( json?.PropertyT("datasourceSetInfo"), out var __jsonDatasourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DatasourceSet.FromJson(__jsonDatasourceSetInfo) : DatasourceSetInfo;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfoBase.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfoBase.PowerShell.cs similarity index 71% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfoBase.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfoBase.PowerShell.cs index db5b76169894..783dcfa9c7c8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfoBase.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfoBase.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class RestoreTargetInfoBase partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RestoreTargetInfoBase(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestoreTargetInfoBase(content); } @@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,14 +94,14 @@ internal RestoreTargetInfoBase(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -116,9 +114,9 @@ internal RestoreTargetInfoBase(global::System.Management.Automation.PSObject con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfoBase.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfoBase.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfoBase.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfoBase.TypeConverter.cs index 86c74643f682..7d93e42e1e40 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfoBase.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfoBase.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfoBase.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfoBase.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfoBase.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfoBase.cs index a55349ca33eb..489900ed36ee 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfoBase.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfoBase.cs @@ -1,15 +1,15 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Base class common to RestoreTargetInfo and RestoreFilesTargetInfo public partial class RestoreTargetInfoBase : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal { /// Internal Acessors for RecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBaseInternal.RecoveryOption { get => this._recoveryOption; set { {_recoveryOption = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBaseInternal.RecoveryOption { get => this._recoveryOption; set { {_recoveryOption = value;} } } /// Backing field for property. private string _objectType; diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfoBase.json.cs b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfoBase.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfoBase.json.cs rename to src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfoBase.json.cs index 26d66a74c95a..3ef61b538d5f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RestoreTargetInfoBase.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RestoreTargetInfoBase.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,15 +47,15 @@ public partial class RestoreTargetInfoBase partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase interface - /// is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase interface is polymorphic, + /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { @@ -65,6 +65,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 switch ( json.StringProperty("objectType") ) { + case "ItemLevelRestoreTargetInfo": + { + return new ItemLevelRestoreTargetInfo(json); + } case "RestoreFilesTargetInfo": { return new RestoreFilesTargetInfo(json); diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RetentionTag.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/RetentionTag.PowerShell.cs similarity index 73% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RetentionTag.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/RetentionTag.PowerShell.cs index 08242e07849a..b687e17cc6f1 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RetentionTag.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RetentionTag.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,27 +48,27 @@ public partial class RetentionTag partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RetentionTag(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RetentionTag(content); } @@ -78,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -94,14 +94,14 @@ internal RetentionTag(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)this).ETag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)this).TagName = (string) content.GetValueForProperty("TagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)this).TagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)this).TagName = (string) content.GetValueForProperty("TagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)this).TagName, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -114,9 +114,9 @@ internal RetentionTag(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)this).ETag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)this).TagName = (string) content.GetValueForProperty("TagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)this).TagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)this).TagName = (string) content.GetValueForProperty("TagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)this).TagName, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RetentionTag.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/RetentionTag.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RetentionTag.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/RetentionTag.TypeConverter.cs index 1f406c489861..4fbdd70f60d2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RetentionTag.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RetentionTag.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RetentionTag.cs b/src/DataProtection/generated/api/Models/Api202101/RetentionTag.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RetentionTag.cs rename to src/DataProtection/generated/api/Models/Api202101/RetentionTag.cs index 6d81023f3c41..26a62eddeea7 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RetentionTag.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RetentionTag.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Retention tag public partial class RetentionTag : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal { /// Backing field for property. @@ -23,10 +23,10 @@ public partial class RetentionTag : public string Id { get => this._id; } /// Internal Acessors for ETag - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal.ETag { get => this._eTag; set { {_eTag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal.ETag { get => this._eTag; set { {_eTag = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal.Id { get => this._id; set { {_id = value;} } } /// Backing field for property. private string _tagName; diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/RetentionTag.json.cs b/src/DataProtection/generated/api/Models/Api202101/RetentionTag.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/RetentionTag.json.cs rename to src/DataProtection/generated/api/Models/Api202101/RetentionTag.json.cs index 92eafe49a59d..715f38a1c15f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/RetentionTag.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/RetentionTag.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class RetentionTag partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new RetentionTag(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedBackupCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedBackupCriteria.PowerShell.cs new file mode 100644 index 000000000000..a1f6789b129e --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedBackupCriteria.PowerShell.cs @@ -0,0 +1,145 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Schedule based backup criteria + [System.ComponentModel.TypeConverter(typeof(ScheduleBasedBackupCriteriaTypeConverter))] + public partial class ScheduleBasedBackupCriteria + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ScheduleBasedBackupCriteria(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ScheduleBasedBackupCriteria(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ScheduleBasedBackupCriteria(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[]) content.GetValueForProperty("AbsoluteCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay[]) content.GetValueForProperty("DaysOfMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DayTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[]) content.GetValueForProperty("DaysOfTheWeek",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month[]) content.GetValueForProperty("MonthsOfYear",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime = (global::System.DateTime[]) content.GetValueForProperty("ScheduleTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime, __y => TypeConverterExtensions.SelectToArray(__y, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber[]) content.GetValueForProperty("WeeksOfTheMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ScheduleBasedBackupCriteria(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[]) content.GetValueForProperty("AbsoluteCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay[]) content.GetValueForProperty("DaysOfMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DayTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[]) content.GetValueForProperty("DaysOfTheWeek",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month[]) content.GetValueForProperty("MonthsOfYear",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime = (global::System.DateTime[]) content.GetValueForProperty("ScheduleTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime, __y => TypeConverterExtensions.SelectToArray(__y, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber[]) content.GetValueForProperty("WeeksOfTheMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Schedule based backup criteria + [System.ComponentModel.TypeConverter(typeof(ScheduleBasedBackupCriteriaTypeConverter))] + public partial interface IScheduleBasedBackupCriteria + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedBackupCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedBackupCriteria.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedBackupCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ScheduleBasedBackupCriteria.TypeConverter.cs index 871494328cf5..483fcc2eebba 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedBackupCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedBackupCriteria.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedBackupCriteria.cs b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedBackupCriteria.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedBackupCriteria.cs rename to src/DataProtection/generated/api/Models/Api202101/ScheduleBasedBackupCriteria.cs index 2af71be9adc1..9207a90340a0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedBackupCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedBackupCriteria.cs @@ -1,18 +1,18 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Schedule based backup criteria public partial class ScheduleBasedBackupCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteriaInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria __backupCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupCriteria(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria __backupCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupCriteria(); /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[] _absoluteCriterion; @@ -25,11 +25,11 @@ public partial class ScheduleBasedBackupCriteria : public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[] AbsoluteCriterion { get => this._absoluteCriterion; set => this._absoluteCriterion = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay[] _daysOfMonth; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay[] _daysOfMonth; /// This is day of the month from 1 to 28 other wise last of month [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay[] DaysOfMonth { get => this._daysOfMonth; set => this._daysOfMonth = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay[] DaysOfMonth { get => this._daysOfMonth; set => this._daysOfMonth = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[] _daysOfTheWeek; @@ -47,7 +47,7 @@ public partial class ScheduleBasedBackupCriteria : /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteriaInternal)__backupCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteriaInternal)__backupCriteria).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteriaInternal)__backupCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteriaInternal)__backupCriteria).ObjectType = value ; } /// Backing field for property. private global::System.DateTime[] _scheduleTime; @@ -84,7 +84,7 @@ public ScheduleBasedBackupCriteria() /// Schedule based backup criteria public partial interface IScheduleBasedBackupCriteria : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria { /// /// it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" @@ -104,8 +104,8 @@ public partial interface IScheduleBasedBackupCriteria : ReadOnly = false, Description = @"This is day of the month from 1 to 28 other wise last of month", SerializedName = @"daysOfMonth", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay[] DaysOfMonth { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay[] DaysOfMonth { get; set; } /// It should be Sunday/Monday/T..../Saturday [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -142,7 +142,7 @@ public partial interface IScheduleBasedBackupCriteria : } /// Schedule based backup criteria internal partial interface IScheduleBasedBackupCriteriaInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteriaInternal { /// /// it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" @@ -150,7 +150,7 @@ internal partial interface IScheduleBasedBackupCriteriaInternal : /// Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[] AbsoluteCriterion { get; set; } /// This is day of the month from 1 to 28 other wise last of month - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay[] DaysOfMonth { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay[] DaysOfMonth { get; set; } /// It should be Sunday/Monday/T..../Saturday Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[] DaysOfTheWeek { get; set; } /// It should be January/February/....../December diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedBackupCriteria.json.cs b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedBackupCriteria.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedBackupCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ScheduleBasedBackupCriteria.json.cs index f54a633ee907..e55ee303fd3f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedBackupCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedBackupCriteria.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class ScheduleBasedBackupCriteria partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ScheduleBasedBackupCriteria(json) : null; } @@ -70,9 +70,9 @@ internal ScheduleBasedBackupCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProt { return; } - __backupCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupCriteria(json); + __backupCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupCriteria(json); {_absoluteCriterion = If( json?.PropertyT("absoluteCriteria"), out var __jsonAbsoluteCriteria) ? If( __jsonAbsoluteCriteria as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker) (__u is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString __t ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker)(__t.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker)""))) ))() : null : AbsoluteCriterion;} - {_daysOfMonth = If( json?.PropertyT("daysOfMonth"), out var __jsonDaysOfMonth) ? If( __jsonDaysOfMonth as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.Day.FromJson(__p) )) ))() : null : DaysOfMonth;} + {_daysOfMonth = If( json?.PropertyT("daysOfMonth"), out var __jsonDaysOfMonth) ? If( __jsonDaysOfMonth as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDay) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.Day.FromJson(__p) )) ))() : null : DaysOfMonth;} {_daysOfTheWeek = If( json?.PropertyT("daysOfTheWeek"), out var __jsonDaysOfTheWeek) ? If( __jsonDaysOfTheWeek as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek) (__k is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString __j ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek)(__j.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek)""))) ))() : null : DaysOfTheWeek;} {_monthsOfYear = If( json?.PropertyT("monthsOfYear"), out var __jsonMonthsOfYear) ? If( __jsonMonthsOfYear as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month) (__f is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString __e ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month)(__e.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month)""))) ))() : null : MonthsOfYear;} {_scheduleTime = If( json?.PropertyT("scheduleTimes"), out var __jsonScheduleTimes) ? If( __jsonScheduleTimes as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __b) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__b, (__a)=>(global::System.DateTime) (__a is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString ___z ? global::System.DateTime.TryParse((string)___z, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var ___zValue) ? ___zValue : default(global::System.DateTime) : default(global::System.DateTime))) ))() : null : ScheduleTime;} diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedTriggerContext.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedTriggerContext.PowerShell.cs similarity index 60% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedTriggerContext.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/ScheduleBasedTriggerContext.PowerShell.cs index 704858c24ae5..a15f5dc6a51b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedTriggerContext.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedTriggerContext.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class ScheduleBasedTriggerContext partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContext DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContext DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ScheduleBasedTriggerContext(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ScheduleBasedTriggerContext(content); } @@ -80,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContext FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContext FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,15 +96,15 @@ internal ScheduleBasedTriggerContext(global::System.Collections.IDictionary cont return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupScheduleTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria[]) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal)this).TaggingCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TaggingCriteriaTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval = (string[]) content.GetValueForProperty("ScheduleRepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria[]) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal)this).TaggingCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TaggingCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval = (string[]) content.GetValueForProperty("ScheduleRepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -117,10 +117,10 @@ internal ScheduleBasedTriggerContext(global::System.Management.Automation.PSObje return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupScheduleTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria[]) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal)this).TaggingCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TaggingCriteriaTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval = (string[]) content.GetValueForProperty("ScheduleRepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria[]) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal)this).TaggingCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TaggingCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval = (string[]) content.GetValueForProperty("ScheduleRepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedTriggerContext.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedTriggerContext.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedTriggerContext.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ScheduleBasedTriggerContext.TypeConverter.cs index 481ec57a49a7..f43246b43b46 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedTriggerContext.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedTriggerContext.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContext ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContext ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContext).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContext).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedTriggerContext.cs b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedTriggerContext.cs similarity index 71% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedTriggerContext.cs rename to src/DataProtection/generated/api/Models/Api202101/ScheduleBasedTriggerContext.cs index ee731d103d2e..7b84f88ee07b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedTriggerContext.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedTriggerContext.cs @@ -1,43 +1,43 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Schedule based trigger context public partial class ScheduleBasedTriggerContext : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContext, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContext, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TriggerContext(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TriggerContext(); /// Internal Acessors for Schedule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContextInternal.Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupSchedule()); set { {_schedule = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContextInternal.Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupSchedule()); set { {_schedule = value;} } } /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)__triggerContext).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)__triggerContext).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)__triggerContext).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)__triggerContext).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule _schedule; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule _schedule; /// Schedule for this backup [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupSchedule()); set => this._schedule = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupSchedule()); set => this._schedule = value; } /// ISO 8601 repeating time interval format [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string[] ScheduleRepeatingTimeInterval { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupScheduleInternal)Schedule).RepeatingTimeInterval; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupScheduleInternal)Schedule).RepeatingTimeInterval = value ; } + public string[] ScheduleRepeatingTimeInterval { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupScheduleInternal)Schedule).RepeatingTimeInterval; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupScheduleInternal)Schedule).RepeatingTimeInterval = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria[] _taggingCriterion; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria[] _taggingCriterion; /// List of tags that can be applicable for given schedule. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria[] TaggingCriterion { get => this._taggingCriterion; set => this._taggingCriterion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria[] TaggingCriterion { get => this._taggingCriterion; set => this._taggingCriterion = value; } /// Creates an new instance. public ScheduleBasedTriggerContext() @@ -60,7 +60,7 @@ public ScheduleBasedTriggerContext() /// Schedule based trigger context public partial interface IScheduleBasedTriggerContext : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext { /// ISO 8601 repeating time interval format [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -76,20 +76,20 @@ public partial interface IScheduleBasedTriggerContext : ReadOnly = false, Description = @"List of tags that can be applicable for given schedule.", SerializedName = @"taggingCriteria", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria[] TaggingCriterion { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria[] TaggingCriterion { get; set; } } /// Schedule based trigger context internal partial interface IScheduleBasedTriggerContextInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal { /// Schedule for this backup - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupSchedule Schedule { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupSchedule Schedule { get; set; } /// ISO 8601 repeating time interval format string[] ScheduleRepeatingTimeInterval { get; set; } /// List of tags that can be applicable for given schedule. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria[] TaggingCriterion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria[] TaggingCriterion { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedTriggerContext.json.cs b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedTriggerContext.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedTriggerContext.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ScheduleBasedTriggerContext.json.cs index c7198fcdc1c3..1013343ab2d8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedTriggerContext.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ScheduleBasedTriggerContext.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class ScheduleBasedTriggerContext partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContext. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContext. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContext. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContext. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedTriggerContext FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedTriggerContext FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ScheduleBasedTriggerContext(json) : null; } @@ -70,9 +70,9 @@ internal ScheduleBasedTriggerContext(Microsoft.Azure.PowerShell.Cmdlets.DataProt { return; } - __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TriggerContext(json); - {_schedule = If( json?.PropertyT("schedule"), out var __jsonSchedule) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupSchedule.FromJson(__jsonSchedule) : Schedule;} - {_taggingCriterion = If( json?.PropertyT("taggingCriteria"), out var __jsonTaggingCriteria) ? If( __jsonTaggingCriteria as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TaggingCriteria.FromJson(__u) )) ))() : null : TaggingCriterion;} + __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TriggerContext(json); + {_schedule = If( json?.PropertyT("schedule"), out var __jsonSchedule) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupSchedule.FromJson(__jsonSchedule) : Schedule;} + {_taggingCriterion = If( json?.PropertyT("taggingCriteria"), out var __jsonTaggingCriteria) ? If( __jsonTaggingCriteria as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TaggingCriteria.FromJson(__u) )) ))() : null : TaggingCriterion;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/SourceLifeCycle.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/SourceLifeCycle.PowerShell.cs similarity index 51% rename from src/DataProtection/generated/api/Models/Api20210201Preview/SourceLifeCycle.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/SourceLifeCycle.PowerShell.cs index 258f6890db8a..b43f77b57fea 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/SourceLifeCycle.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/SourceLifeCycle.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class SourceLifeCycle partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SourceLifeCycle(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SourceLifeCycle(content); } @@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,18 +94,18 @@ internal SourceLifeCycle(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).DeleteAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption) content.GetValueForProperty("DeleteAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).DeleteAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DeleteOptionTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).SourceDataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase) content.GetValueForProperty("SourceDataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).SourceDataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting[]) content.GetValueForProperty("TargetDataStoreCopySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TargetCopySettingTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).DeleteAfterDuration = (string) content.GetValueForProperty("DeleteAfterDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).DeleteAfterDuration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).DeleteAfterObjectType = (string) content.GetValueForProperty("DeleteAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).DeleteAfterObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).SourceDataStoreObjectType = (string) content.GetValueForProperty("SourceDataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).SourceDataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).DeleteAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption) content.GetValueForProperty("DeleteAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).DeleteAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DeleteOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).SourceDataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase) content.GetValueForProperty("SourceDataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).SourceDataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting[]) content.GetValueForProperty("TargetDataStoreCopySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TargetCopySettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).DeleteAfterDuration = (string) content.GetValueForProperty("DeleteAfterDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).DeleteAfterDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).DeleteAfterObjectType = (string) content.GetValueForProperty("DeleteAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).DeleteAfterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).SourceDataStoreObjectType = (string) content.GetValueForProperty("SourceDataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).SourceDataStoreObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -120,13 +118,13 @@ internal SourceLifeCycle(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).DeleteAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption) content.GetValueForProperty("DeleteAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).DeleteAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DeleteOptionTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).SourceDataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase) content.GetValueForProperty("SourceDataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).SourceDataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting[]) content.GetValueForProperty("TargetDataStoreCopySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TargetCopySettingTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).DeleteAfterDuration = (string) content.GetValueForProperty("DeleteAfterDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).DeleteAfterDuration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).DeleteAfterObjectType = (string) content.GetValueForProperty("DeleteAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).DeleteAfterObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).SourceDataStoreObjectType = (string) content.GetValueForProperty("SourceDataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal)this).SourceDataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).DeleteAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption) content.GetValueForProperty("DeleteAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).DeleteAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DeleteOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).SourceDataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase) content.GetValueForProperty("SourceDataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).SourceDataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting[]) content.GetValueForProperty("TargetDataStoreCopySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TargetCopySettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).DeleteAfterDuration = (string) content.GetValueForProperty("DeleteAfterDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).DeleteAfterDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).DeleteAfterObjectType = (string) content.GetValueForProperty("DeleteAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).DeleteAfterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).SourceDataStoreObjectType = (string) content.GetValueForProperty("SourceDataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal)this).SourceDataStoreObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/SourceLifeCycle.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/SourceLifeCycle.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/SourceLifeCycle.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/SourceLifeCycle.TypeConverter.cs index 0c71f19ca7aa..5f6ad275c121 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/SourceLifeCycle.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/SourceLifeCycle.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/SourceLifeCycle.cs b/src/DataProtection/generated/api/Models/Api202101/SourceLifeCycle.cs similarity index 68% rename from src/DataProtection/generated/api/Models/Api20210201Preview/SourceLifeCycle.cs rename to src/DataProtection/generated/api/Models/Api202101/SourceLifeCycle.cs index c9fb5583ef25..08f8016ebcda 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/SourceLifeCycle.cs +++ b/src/DataProtection/generated/api/Models/Api202101/SourceLifeCycle.cs @@ -1,54 +1,54 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Source LifeCycle public partial class SourceLifeCycle : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption _deleteAfter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption _deleteAfter; /// Delete Option [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption DeleteAfter { get => (this._deleteAfter = this._deleteAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DeleteOption()); set => this._deleteAfter = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption DeleteAfter { get => (this._deleteAfter = this._deleteAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DeleteOption()); set => this._deleteAfter = value; } /// Duration of deletion after given timespan [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DeleteAfterDuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)DeleteAfter).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)DeleteAfter).Duration = value ; } + public string DeleteAfterDuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)DeleteAfter).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)DeleteAfter).Duration = value ; } /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DeleteAfterObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)DeleteAfter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOptionInternal)DeleteAfter).ObjectType = value ; } + public string DeleteAfterObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)DeleteAfter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOptionInternal)DeleteAfter).ObjectType = value ; } /// Internal Acessors for DeleteAfter - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal.DeleteAfter { get => (this._deleteAfter = this._deleteAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DeleteOption()); set { {_deleteAfter = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal.DeleteAfter { get => (this._deleteAfter = this._deleteAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DeleteOption()); set { {_deleteAfter = value;} } } /// Internal Acessors for SourceDataStore - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycleInternal.SourceDataStore { get => (this._sourceDataStore = this._sourceDataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBase()); set { {_sourceDataStore = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycleInternal.SourceDataStore { get => (this._sourceDataStore = this._sourceDataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBase()); set { {_sourceDataStore = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase _sourceDataStore; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase _sourceDataStore; /// DataStoreInfo base [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase SourceDataStore { get => (this._sourceDataStore = this._sourceDataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBase()); set => this._sourceDataStore = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase SourceDataStore { get => (this._sourceDataStore = this._sourceDataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBase()); set => this._sourceDataStore = value; } /// Type of Datasource object, used to initialize the right inherited type [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string SourceDataStoreObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)SourceDataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)SourceDataStore).ObjectType = value ; } + public string SourceDataStoreObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)SourceDataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)SourceDataStore).ObjectType = value ; } /// type of datastore; Operational/Vault/Archive [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)SourceDataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)SourceDataStore).DataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)SourceDataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)SourceDataStore).DataStoreType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting[] _targetDataStoreCopySetting; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting[] _targetDataStoreCopySetting; [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting[] TargetDataStoreCopySetting { get => this._targetDataStoreCopySetting; set => this._targetDataStoreCopySetting = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting[] TargetDataStoreCopySetting { get => this._targetDataStoreCopySetting; set => this._targetDataStoreCopySetting = value; } /// Creates an new instance. public SourceLifeCycle() @@ -98,8 +98,8 @@ public partial interface ISourceLifeCycle : ReadOnly = false, Description = @"", SerializedName = @"targetDataStoreCopySettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting[] TargetDataStoreCopySetting { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting[] TargetDataStoreCopySetting { get; set; } } /// Source LifeCycle @@ -107,19 +107,19 @@ internal partial interface ISourceLifeCycleInternal { /// Delete Option - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDeleteOption DeleteAfter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDeleteOption DeleteAfter { get; set; } /// Duration of deletion after given timespan string DeleteAfterDuration { get; set; } /// Type of the specific object - used for deserializing string DeleteAfterObjectType { get; set; } /// DataStoreInfo base - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase SourceDataStore { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase SourceDataStore { get; set; } /// Type of Datasource object, used to initialize the right inherited type string SourceDataStoreObjectType { get; set; } /// type of datastore; Operational/Vault/Archive Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes SourceDataStoreType { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting[] TargetDataStoreCopySetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting[] TargetDataStoreCopySetting { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/SourceLifeCycle.json.cs b/src/DataProtection/generated/api/Models/Api202101/SourceLifeCycle.json.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210201Preview/SourceLifeCycle.json.cs rename to src/DataProtection/generated/api/Models/Api202101/SourceLifeCycle.json.cs index 0a48a847caae..629e63f59ffe 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/SourceLifeCycle.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/SourceLifeCycle.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class SourceLifeCycle partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new SourceLifeCycle(json) : null; } @@ -70,9 +70,9 @@ internal SourceLifeCycle(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti { return; } - {_deleteAfter = If( json?.PropertyT("deleteAfter"), out var __jsonDeleteAfter) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DeleteOption.FromJson(__jsonDeleteAfter) : DeleteAfter;} - {_sourceDataStore = If( json?.PropertyT("sourceDataStore"), out var __jsonSourceDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBase.FromJson(__jsonSourceDataStore) : SourceDataStore;} - {_targetDataStoreCopySetting = If( json?.PropertyT("targetDataStoreCopySettings"), out var __jsonTargetDataStoreCopySettings) ? If( __jsonTargetDataStoreCopySettings as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TargetCopySetting.FromJson(__u) )) ))() : null : TargetDataStoreCopySetting;} + {_deleteAfter = If( json?.PropertyT("deleteAfter"), out var __jsonDeleteAfter) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DeleteOption.FromJson(__jsonDeleteAfter) : DeleteAfter;} + {_sourceDataStore = If( json?.PropertyT("sourceDataStore"), out var __jsonSourceDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBase.FromJson(__jsonSourceDataStore) : SourceDataStore;} + {_targetDataStoreCopySetting = If( json?.PropertyT("targetDataStoreCopySettings"), out var __jsonTargetDataStoreCopySettings) ? If( __jsonTargetDataStoreCopySettings as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TargetCopySetting.FromJson(__u) )) ))() : null : TargetDataStoreCopySetting;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/StorageSetting.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/StorageSetting.PowerShell.cs similarity index 73% rename from src/DataProtection/generated/api/Models/Api20210201Preview/StorageSetting.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/StorageSetting.PowerShell.cs index 4a33a90ec149..3e15609d4bfd 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/StorageSetting.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/StorageSetting.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class StorageSetting partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageSetting(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageSetting(content); } @@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,13 +94,13 @@ internal StorageSetting(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSettingInternal)this).DatastoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes?) content.GetValueForProperty("DatastoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSettingInternal)this).DatastoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSettingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSettingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSettingInternal)this).DatastoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes?) content.GetValueForProperty("DatastoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSettingInternal)this).DatastoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSettingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSettingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes.CreateFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -115,8 +113,8 @@ internal StorageSetting(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSettingInternal)this).DatastoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes?) content.GetValueForProperty("DatastoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSettingInternal)this).DatastoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSettingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSettingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSettingInternal)this).DatastoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes?) content.GetValueForProperty("DatastoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSettingInternal)this).DatastoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSettingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSettingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes.CreateFrom); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/StorageSetting.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/StorageSetting.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/StorageSetting.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/StorageSetting.TypeConverter.cs index 4b8a0f54d27e..c8cfec22727a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/StorageSetting.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/StorageSetting.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/StorageSetting.cs b/src/DataProtection/generated/api/Models/Api202101/StorageSetting.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/StorageSetting.cs rename to src/DataProtection/generated/api/Models/Api202101/StorageSetting.cs index 49bdb775e888..212dd686d2a2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/StorageSetting.cs +++ b/src/DataProtection/generated/api/Models/Api202101/StorageSetting.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Storage setting public partial class StorageSetting : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSettingInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSettingInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/StorageSetting.json.cs b/src/DataProtection/generated/api/Models/Api202101/StorageSetting.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/StorageSetting.json.cs rename to src/DataProtection/generated/api/Models/Api202101/StorageSetting.json.cs index ce0d3156448f..78ebd8ecbede 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/StorageSetting.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/StorageSetting.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class StorageSetting partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new StorageSetting(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/SupportedFeature.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/SupportedFeature.PowerShell.cs similarity index 68% rename from src/DataProtection/generated/api/Models/Api20210201Preview/SupportedFeature.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/SupportedFeature.PowerShell.cs index 84b5a9843fe9..08a93eb702e6 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/SupportedFeature.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/SupportedFeature.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class SupportedFeature partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SupportedFeature(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SupportedFeature(content); } @@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,14 +94,14 @@ internal SupportedFeature(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeatureInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeatureInternal)this).FeatureName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeatureInternal)this).SupportStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus?) content.GetValueForProperty("SupportStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeatureInternal)this).SupportStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeatureInternal)this).ExposureControlledFeature = (string[]) content.GetValueForProperty("ExposureControlledFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeatureInternal)this).ExposureControlledFeature, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeatureInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeatureInternal)this).FeatureName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeatureInternal)this).SupportStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus?) content.GetValueForProperty("SupportStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeatureInternal)this).SupportStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeatureInternal)this).ExposureControlledFeature = (string[]) content.GetValueForProperty("ExposureControlledFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeatureInternal)this).ExposureControlledFeature, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -116,9 +114,9 @@ internal SupportedFeature(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeatureInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeatureInternal)this).FeatureName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeatureInternal)this).SupportStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus?) content.GetValueForProperty("SupportStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeatureInternal)this).SupportStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeatureInternal)this).ExposureControlledFeature = (string[]) content.GetValueForProperty("ExposureControlledFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeatureInternal)this).ExposureControlledFeature, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeatureInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeatureInternal)this).FeatureName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeatureInternal)this).SupportStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus?) content.GetValueForProperty("SupportStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeatureInternal)this).SupportStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeatureInternal)this).ExposureControlledFeature = (string[]) content.GetValueForProperty("ExposureControlledFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeatureInternal)this).ExposureControlledFeature, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/SupportedFeature.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/SupportedFeature.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/SupportedFeature.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/SupportedFeature.TypeConverter.cs index ea8f20b1e79d..7e3973ebc2f4 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/SupportedFeature.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/SupportedFeature.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/SupportedFeature.cs b/src/DataProtection/generated/api/Models/Api202101/SupportedFeature.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/SupportedFeature.cs rename to src/DataProtection/generated/api/Models/Api202101/SupportedFeature.cs index 8cb9cabaea75..220604e55c27 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/SupportedFeature.cs +++ b/src/DataProtection/generated/api/Models/Api202101/SupportedFeature.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Elements class for feature request public partial class SupportedFeature : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeatureInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeatureInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/SupportedFeature.json.cs b/src/DataProtection/generated/api/Models/Api202101/SupportedFeature.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/SupportedFeature.json.cs rename to src/DataProtection/generated/api/Models/Api202101/SupportedFeature.json.cs index 90b4e4e01118..e212e5ba6e87 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/SupportedFeature.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/SupportedFeature.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class SupportedFeature partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISupportedFeature FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISupportedFeature FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new SupportedFeature(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/SystemData.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/SystemData.PowerShell.cs similarity index 57% rename from src/DataProtection/generated/api/Models/Api20210201Preview/SystemData.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/SystemData.PowerShell.cs index a14bb255befc..e46ff3ef8124 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/SystemData.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/SystemData.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,27 +48,27 @@ public partial class SystemData partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SystemData(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SystemData(content); } @@ -78,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -94,17 +94,17 @@ internal SystemData(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).LastModifiedAt, (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 into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -117,12 +117,12 @@ internal SystemData(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/SystemData.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/SystemData.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/SystemData.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/SystemData.TypeConverter.cs index d90e89fd1392..4be9d507dd4f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/SystemData.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/SystemData.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/SystemData.cs b/src/DataProtection/generated/api/Models/Api202101/SystemData.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210201Preview/SystemData.cs rename to src/DataProtection/generated/api/Models/Api202101/SystemData.cs index 2fa386978780..2e260101bc16 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/SystemData.cs +++ b/src/DataProtection/generated/api/Models/Api202101/SystemData.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Metadata pertaining to creation and last modification of the resource. public partial class SystemData : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemDataInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemDataInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/SystemData.json.cs b/src/DataProtection/generated/api/Models/Api202101/SystemData.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/SystemData.json.cs rename to src/DataProtection/generated/api/Models/Api202101/SystemData.json.cs index 94dafff9a49c..e03d747d0a15 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/SystemData.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/SystemData.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class SystemData partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new SystemData(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TaggingCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/TaggingCriteria.PowerShell.cs similarity index 55% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TaggingCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/TaggingCriteria.PowerShell.cs index 215ae24e2dfd..30195e27e7c3 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TaggingCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TaggingCriteria.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class TaggingCriteria partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TaggingCriteria(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TaggingCriteria(content); } @@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,18 +94,18 @@ internal TaggingCriteria(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTagTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria[]) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).Criterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupCriteriaTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).IsDefault = (bool) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TaggingPriority = (long) content.GetValueForProperty("TaggingPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TaggingPriority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria[]) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).Criterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).IsDefault = (bool) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TaggingPriority = (long) content.GetValueForProperty("TaggingPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TaggingPriority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -120,13 +118,13 @@ internal TaggingCriteria(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTagTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria[]) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).Criterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupCriteriaTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).IsDefault = (bool) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TaggingPriority = (long) content.GetValueForProperty("TaggingPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TaggingPriority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria[]) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).Criterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).IsDefault = (bool) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TaggingPriority = (long) content.GetValueForProperty("TaggingPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TaggingPriority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TaggingCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/TaggingCriteria.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TaggingCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/TaggingCriteria.TypeConverter.cs index 78f4ab1fc1c0..e016a00083f0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TaggingCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TaggingCriteria.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TaggingCriteria.cs b/src/DataProtection/generated/api/Models/Api202101/TaggingCriteria.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TaggingCriteria.cs rename to src/DataProtection/generated/api/Models/Api202101/TaggingCriteria.cs index 076f8a459468..a41f987b3513 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TaggingCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TaggingCriteria.cs @@ -1,19 +1,19 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Tagging criteria public partial class TaggingCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria[] _criterion; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria[] _criterion; /// Criteria which decides whether the tag can be applied to a triggered backup. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria[] Criterion { get => this._criterion; set => this._criterion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria[] Criterion { get => this._criterion; set => this._criterion = value; } /// Backing field for property. private bool _isDefault; @@ -23,32 +23,32 @@ public partial class TaggingCriteria : public bool IsDefault { get => this._isDefault; set => this._isDefault = value; } /// Internal Acessors for TagInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal.TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTag()); set { {_tagInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal.TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTag()); set { {_tagInfo = value;} } } /// Internal Acessors for TagInfoETag - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).ETag = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).ETag = value; } /// Internal Acessors for TagInfoId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteriaInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteriaInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).Id = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag _tagInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag _tagInfo; /// Retention tag information [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTag()); set => this._tagInfo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTag()); set => this._tagInfo = value; } /// Retention Tag version. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).ETag; } + public string TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).ETag; } /// Retention Tag version. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).Id; } + public string TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).Id; } /// Retention Tag Name to relate it to retention rule. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TagInfoTagName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).TagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTagInternal)TagInfo).TagName = value ; } + public string TagInfoTagName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).TagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTagInternal)TagInfo).TagName = value ; } /// Backing field for property. private long _taggingPriority; @@ -73,8 +73,8 @@ public partial interface ITaggingCriteria : ReadOnly = false, Description = @"Criteria which decides whether the tag can be applied to a triggered backup.", SerializedName = @"criteria", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria[] Criterion { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria[] Criterion { get; set; } /// Specifies if tag is default. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -122,11 +122,11 @@ internal partial interface ITaggingCriteriaInternal { /// Criteria which decides whether the tag can be applied to a triggered backup. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria[] Criterion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria[] Criterion { get; set; } /// Specifies if tag is default. bool IsDefault { get; set; } /// Retention tag information - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRetentionTag TagInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRetentionTag TagInfo { get; set; } /// Retention Tag version. string TagInfoETag { get; set; } /// Retention Tag version. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TaggingCriteria.json.cs b/src/DataProtection/generated/api/Models/Api202101/TaggingCriteria.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TaggingCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api202101/TaggingCriteria.json.cs index ec92753b03a3..0eecb501446b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TaggingCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TaggingCriteria.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class TaggingCriteria partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITaggingCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITaggingCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new TaggingCriteria(json) : null; } @@ -70,8 +70,8 @@ internal TaggingCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti { return; } - {_tagInfo = If( json?.PropertyT("tagInfo"), out var __jsonTagInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RetentionTag.FromJson(__jsonTagInfo) : TagInfo;} - {_criterion = If( json?.PropertyT("criteria"), out var __jsonCriteria) ? If( __jsonCriteria as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupCriteria.FromJson(__u) )) ))() : null : Criterion;} + {_tagInfo = If( json?.PropertyT("tagInfo"), out var __jsonTagInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RetentionTag.FromJson(__jsonTagInfo) : TagInfo;} + {_criterion = If( json?.PropertyT("criteria"), out var __jsonCriteria) ? If( __jsonCriteria as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupCriteria.FromJson(__u) )) ))() : null : Criterion;} {_isDefault = If( json?.PropertyT("isDefault"), out var __jsonIsDefault) ? (bool)__jsonIsDefault : IsDefault;} {_taggingPriority = If( json?.PropertyT("taggingPriority"), out var __jsonTaggingPriority) ? (long)__jsonTaggingPriority : TaggingPriority;} AfterFromJson(json); diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetCopySetting.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/TargetCopySetting.PowerShell.cs similarity index 59% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TargetCopySetting.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/TargetCopySetting.PowerShell.cs index 886bc7f68123..ae62a565e424 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetCopySetting.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TargetCopySetting.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class TargetCopySetting partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TargetCopySetting(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TargetCopySetting(content); } @@ -80,10 +78,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,16 +94,16 @@ internal TargetCopySetting(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).CopyAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption) content.GetValueForProperty("CopyAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).CopyAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOptionTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).CopyAfterObjectType = (string) content.GetValueForProperty("CopyAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).CopyAfterObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).DataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).CopyAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption) content.GetValueForProperty("CopyAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).CopyAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).CopyAfterObjectType = (string) content.GetValueForProperty("CopyAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).CopyAfterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).DataStoreObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -118,11 +116,11 @@ internal TargetCopySetting(global::System.Management.Automation.PSObject content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).CopyAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption) content.GetValueForProperty("CopyAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).CopyAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOptionTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).CopyAfterObjectType = (string) content.GetValueForProperty("CopyAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).CopyAfterObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal)this).DataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).CopyAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption) content.GetValueForProperty("CopyAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).CopyAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).CopyAfterObjectType = (string) content.GetValueForProperty("CopyAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).CopyAfterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal)this).DataStoreObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetCopySetting.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/TargetCopySetting.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TargetCopySetting.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/TargetCopySetting.TypeConverter.cs index a2e439971410..d9b2a4631f3b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetCopySetting.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TargetCopySetting.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetCopySetting.cs b/src/DataProtection/generated/api/Models/Api202101/TargetCopySetting.cs similarity index 69% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TargetCopySetting.cs rename to src/DataProtection/generated/api/Models/Api202101/TargetCopySetting.cs index 4fd5472de3dc..8b7cece3c108 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetCopySetting.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TargetCopySetting.cs @@ -1,44 +1,44 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Target copy settings public partial class TargetCopySetting : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption _copyAfter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption _copyAfter; /// It can be CustomCopyOption or ImmediateCopyOption. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption CopyAfter { get => (this._copyAfter = this._copyAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOption()); set => this._copyAfter = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption CopyAfter { get => (this._copyAfter = this._copyAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOption()); set => this._copyAfter = value; } /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string CopyAfterObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)CopyAfter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOptionInternal)CopyAfter).ObjectType = value ; } + public string CopyAfterObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)CopyAfter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOptionInternal)CopyAfter).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase _dataStore; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase _dataStore; /// Info of target datastore [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBase()); set => this._dataStore = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBase()); set => this._dataStore = value; } /// Type of Datasource object, used to initialize the right inherited type [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string DataStoreObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)DataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)DataStore).ObjectType = value ; } + public string DataStoreObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)DataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)DataStore).ObjectType = value ; } /// type of datastore; Operational/Vault/Archive [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes DataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)DataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBaseInternal)DataStore).DataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes DataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)DataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBaseInternal)DataStore).DataStoreType = value ; } /// Internal Acessors for CopyAfter - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal.CopyAfter { get => (this._copyAfter = this._copyAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOption()); set { {_copyAfter = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal.CopyAfter { get => (this._copyAfter = this._copyAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOption()); set { {_copyAfter = value;} } } /// Internal Acessors for DataStore - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySettingInternal.DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBase()); set { {_dataStore = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySettingInternal.DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBase()); set { {_dataStore = value;} } } /// Creates an new instance. public TargetCopySetting() @@ -81,11 +81,11 @@ internal partial interface ITargetCopySettingInternal { /// It can be CustomCopyOption or ImmediateCopyOption. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICopyOption CopyAfter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICopyOption CopyAfter { get; set; } /// Type of the specific object - used for deserializing string CopyAfterObjectType { get; set; } /// Info of target datastore - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDataStoreInfoBase DataStore { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDataStoreInfoBase DataStore { get; set; } /// Type of Datasource object, used to initialize the right inherited type string DataStoreObjectType { get; set; } /// type of datastore; Operational/Vault/Archive diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetCopySetting.json.cs b/src/DataProtection/generated/api/Models/Api202101/TargetCopySetting.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TargetCopySetting.json.cs rename to src/DataProtection/generated/api/Models/Api202101/TargetCopySetting.json.cs index d43f05445655..cf769b77b83a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetCopySetting.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TargetCopySetting.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class TargetCopySetting partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetCopySetting FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetCopySetting FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new TargetCopySetting(json) : null; } @@ -70,8 +70,8 @@ internal TargetCopySetting(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Run { return; } - {_copyAfter = If( json?.PropertyT("copyAfter"), out var __jsonCopyAfter) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CopyOption.FromJson(__jsonCopyAfter) : CopyAfter;} - {_dataStore = If( json?.PropertyT("dataStore"), out var __jsonDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DataStoreInfoBase.FromJson(__jsonDataStore) : DataStore;} + {_copyAfter = If( json?.PropertyT("copyAfter"), out var __jsonCopyAfter) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CopyOption.FromJson(__jsonCopyAfter) : CopyAfter;} + {_dataStore = If( json?.PropertyT("dataStore"), out var __jsonDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.DataStoreInfoBase.FromJson(__jsonDataStore) : DataStore;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/TargetDetails.PowerShell.cs similarity index 70% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TargetDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/TargetDetails.PowerShell.cs index 5d4166c4e02a..e13de5f1c318 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TargetDetails.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -50,29 +50,27 @@ public partial class TargetDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TargetDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TargetDetails(content); } @@ -82,10 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,14 +96,14 @@ internal TargetDetails(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)this).FilePrefix = (string) content.GetValueForProperty("FilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)this).FilePrefix, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)this).RestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("RestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)this).RestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)this).Url, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)this).FilePrefix = (string) content.GetValueForProperty("FilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)this).FilePrefix, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)this).RestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("RestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)this).RestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)this).Url, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -118,9 +116,9 @@ internal TargetDetails(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)this).FilePrefix = (string) content.GetValueForProperty("FilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)this).FilePrefix, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)this).RestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("RestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)this).RestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal)this).Url, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)this).FilePrefix = (string) content.GetValueForProperty("FilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)this).FilePrefix, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)this).RestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("RestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)this).RestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal)this).Url, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/TargetDetails.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TargetDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/TargetDetails.TypeConverter.cs index c04e0c899326..ec2d5a1ce8ab 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TargetDetails.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetDetails.cs b/src/DataProtection/generated/api/Models/Api202101/TargetDetails.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TargetDetails.cs rename to src/DataProtection/generated/api/Models/Api202101/TargetDetails.cs index 4da5d840cf5e..540b399bcd5b 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetDetails.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TargetDetails.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -6,8 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Pr /// Class encapsulating target details, used where the destination is not a datasource /// public partial class TargetDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetailsInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetDetails.json.cs b/src/DataProtection/generated/api/Models/Api202101/TargetDetails.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TargetDetails.json.cs rename to src/DataProtection/generated/api/Models/Api202101/TargetDetails.json.cs index c06455864673..31dbcac1ed08 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TargetDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TargetDetails.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -49,13 +49,13 @@ public partial class TargetDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITargetDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITargetDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new TargetDetails(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerBackupRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/TriggerBackupRequest.PowerShell.cs similarity index 61% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TriggerBackupRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/TriggerBackupRequest.PowerShell.cs index ecdcb20976aa..c1ed98ee2fe2 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerBackupRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TriggerBackupRequest.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class TriggerBackupRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TriggerBackupRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TriggerBackupRequest(content); } @@ -80,7 +78,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -88,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -101,15 +99,15 @@ internal TriggerBackupRequest(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).BackupRuleOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions) content.GetValueForProperty("BackupRuleOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).BackupRuleOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdHocBackupRuleOptionsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption) content.GetValueForProperty("BackupRuleOptionTriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName = (string) content.GetValueForProperty("BackupRuleOptionRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).BackupRuleOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions) content.GetValueForProperty("BackupRuleOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).BackupRuleOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdHocBackupRuleOptionsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption) content.GetValueForProperty("BackupRuleOptionTriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName = (string) content.GetValueForProperty("BackupRuleOptionRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -122,10 +120,10 @@ internal TriggerBackupRequest(global::System.Management.Automation.PSObject cont return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).BackupRuleOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions) content.GetValueForProperty("BackupRuleOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).BackupRuleOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdHocBackupRuleOptionsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption) content.GetValueForProperty("BackupRuleOptionTriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName = (string) content.GetValueForProperty("BackupRuleOptionRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).BackupRuleOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions) content.GetValueForProperty("BackupRuleOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).BackupRuleOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdHocBackupRuleOptionsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption) content.GetValueForProperty("BackupRuleOptionTriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName = (string) content.GetValueForProperty("BackupRuleOptionRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); AfterDeserializePSObject(content); } } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerBackupRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/TriggerBackupRequest.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TriggerBackupRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/TriggerBackupRequest.TypeConverter.cs index 6276a99d062a..c6ff59e74a00 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerBackupRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TriggerBackupRequest.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerBackupRequest.cs b/src/DataProtection/generated/api/Models/Api202101/TriggerBackupRequest.cs similarity index 59% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TriggerBackupRequest.cs rename to src/DataProtection/generated/api/Models/Api202101/TriggerBackupRequest.cs index c29b99618395..4695a4be1a8f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerBackupRequest.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TriggerBackupRequest.cs @@ -1,31 +1,31 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Trigger backup request public partial class TriggerBackupRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions _backupRuleOption; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions _backupRuleOption; /// Name for the Rule of the Policy which needs to be applied for this backup [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions BackupRuleOption { get => (this._backupRuleOption = this._backupRuleOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdHocBackupRuleOptions()); set => this._backupRuleOption = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions BackupRuleOption { get => (this._backupRuleOption = this._backupRuleOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdHocBackupRuleOptions()); set => this._backupRuleOption = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string BackupRuleOptionRuleName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)BackupRuleOption).RuleName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)BackupRuleOption).RuleName = value ; } + public string BackupRuleOptionRuleName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)BackupRuleOption).RuleName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)BackupRuleOption).RuleName = value ; } /// Internal Acessors for BackupRuleOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal.BackupRuleOption { get => (this._backupRuleOption = this._backupRuleOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdHocBackupRuleOptions()); set { {_backupRuleOption = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal.BackupRuleOption { get => (this._backupRuleOption = this._backupRuleOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdHocBackupRuleOptions()); set { {_backupRuleOption = value;} } } /// Internal Acessors for BackupRuleOptionTriggerOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequestInternal.BackupRuleOptionTriggerOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOption = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequestInternal.BackupRuleOptionTriggerOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOption = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TriggerOptionRetentionTagOverride { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOptionRetentionTagOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOptionRetentionTagOverride = value ?? null; } + public string TriggerOptionRetentionTagOverride { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOptionRetentionTagOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOptionRetentionTagOverride = value ?? null; } /// Creates an new instance. public TriggerBackupRequest() @@ -59,11 +59,11 @@ internal partial interface ITriggerBackupRequestInternal { /// Name for the Rule of the Policy which needs to be applied for this backup - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdHocBackupRuleOptions BackupRuleOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdHocBackupRuleOptions BackupRuleOption { get; set; } string BackupRuleOptionRuleName { get; set; } /// Adhoc backup trigger option - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAdhocBackupTriggerOption BackupRuleOptionTriggerOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAdhocBackupTriggerOption BackupRuleOptionTriggerOption { get; set; } string TriggerOptionRetentionTagOverride { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerBackupRequest.json.cs b/src/DataProtection/generated/api/Models/Api202101/TriggerBackupRequest.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TriggerBackupRequest.json.cs rename to src/DataProtection/generated/api/Models/Api202101/TriggerBackupRequest.json.cs index 304d8c193b39..2fdfab8dae75 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerBackupRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TriggerBackupRequest.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class TriggerBackupRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new TriggerBackupRequest(json) : null; } @@ -94,7 +94,7 @@ internal TriggerBackupRequest(Microsoft.Azure.PowerShell.Cmdlets.DataProtection. { return; } - {_backupRuleOption = If( json?.PropertyT("backupRuleOptions"), out var __jsonBackupRuleOptions) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AdHocBackupRuleOptions.FromJson(__jsonBackupRuleOptions) : BackupRuleOption;} + {_backupRuleOption = If( json?.PropertyT("backupRuleOptions"), out var __jsonBackupRuleOptions) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AdHocBackupRuleOptions.FromJson(__jsonBackupRuleOptions) : BackupRuleOption;} AfterFromJson(json); } } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerContext.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/TriggerContext.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TriggerContext.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/TriggerContext.PowerShell.cs index 87983c12d352..823a1e4801bb 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerContext.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TriggerContext.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,27 @@ public partial class TriggerContext partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TriggerContext(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TriggerContext(content); } @@ -80,7 +78,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -88,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -101,12 +99,12 @@ internal TriggerContext(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -119,7 +117,7 @@ internal TriggerContext(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); AfterDeserializePSObject(content); } } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerContext.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/TriggerContext.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TriggerContext.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/TriggerContext.TypeConverter.cs index 45f059ea9e18..795b9f07cb0f 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerContext.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TriggerContext.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerContext.cs b/src/DataProtection/generated/api/Models/Api202101/TriggerContext.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TriggerContext.cs rename to src/DataProtection/generated/api/Models/Api202101/TriggerContext.cs index 307a028e10a1..a541371d09f7 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerContext.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TriggerContext.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Trigger context public partial class TriggerContext : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContextInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContextInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerContext.json.cs b/src/DataProtection/generated/api/Models/Api202101/TriggerContext.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/TriggerContext.json.cs rename to src/DataProtection/generated/api/Models/Api202101/TriggerContext.json.cs index 49d004973042..a227397b970a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/TriggerContext.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/TriggerContext.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,15 +47,15 @@ public partial class TriggerContext partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingError.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/UserFacingError.PowerShell.cs similarity index 50% rename from src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingError.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/UserFacingError.PowerShell.cs index a2d7f1140593..822cb5133519 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingError.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/UserFacingError.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -50,29 +50,27 @@ public partial class UserFacingError partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UserFacingError(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UserFacingError(content); } @@ -82,7 +80,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -90,7 +88,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,20 +101,20 @@ internal UserFacingError(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).InnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).InnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).IsRetryable = (bool?) content.GetValueForProperty("IsRetryable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).IsRetryable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).IsUserError = (bool?) content.GetValueForProperty("IsUserError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).IsUserError, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).RecommendedAction = (string[]) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).RecommendedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).InnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).InnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).IsRetryable = (bool?) content.GetValueForProperty("IsRetryable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).IsRetryable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).IsUserError = (bool?) content.GetValueForProperty("IsUserError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).IsUserError, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).RecommendedAction = (string[]) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).RecommendedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Target, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,15 +127,15 @@ internal UserFacingError(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).InnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).InnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).IsRetryable = (bool?) content.GetValueForProperty("IsRetryable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).IsRetryable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).IsUserError = (bool?) content.GetValueForProperty("IsUserError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).IsUserError, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).RecommendedAction = (string[]) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).RecommendedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).InnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).InnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).IsRetryable = (bool?) content.GetValueForProperty("IsRetryable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).IsRetryable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).IsUserError = (bool?) content.GetValueForProperty("IsUserError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).IsUserError, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).RecommendedAction = (string[]) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).RecommendedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal)this).Target, global::System.Convert.ToString); AfterDeserializePSObject(content); } } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingError.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/UserFacingError.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingError.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/UserFacingError.TypeConverter.cs index 6f79e850a64b..e39cdf649b35 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingError.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/UserFacingError.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingError.cs b/src/DataProtection/generated/api/Models/Api202101/UserFacingError.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingError.cs rename to src/DataProtection/generated/api/Models/Api202101/UserFacingError.cs index eddb4fc9d2bd..368dae4404cb 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingError.cs +++ b/src/DataProtection/generated/api/Models/Api202101/UserFacingError.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -6,8 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Pr /// Error object used by layers that have access to localized content, and propagate that to user /// public partial class UserFacingError : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorInternal { /// Backing field for property. @@ -18,18 +18,18 @@ public partial class UserFacingError : public string Code { get => this._code; set => this._code = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[] _detail; /// Additional related Errors [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[] Detail { get => this._detail; set => this._detail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[] Detail { get => this._detail; set => this._detail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError _innerError; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError _innerError; /// Inner Error [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError InnerError { get => (this._innerError = this._innerError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerError()); set => this._innerError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError InnerError { get => (this._innerError = this._innerError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerError()); set => this._innerError = value; } /// Backing field for property. private bool? _isRetryable; @@ -52,11 +52,11 @@ public partial class UserFacingError : public string Message { get => this._message; set => this._message = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties _property; /// Any key value pairs that can be injected inside error object [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorProperties()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorProperties()); set => this._property = value; } /// Backing field for property. private string[] _recommendedAction; @@ -96,16 +96,16 @@ public partial interface IUserFacingError : ReadOnly = false, Description = @"Additional related Errors", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[] Detail { get; set; } /// Inner Error [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, ReadOnly = false, Description = @"Inner Error", SerializedName = @"innerError", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError InnerError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError InnerError { get; set; } /// Whether the operation will be retryable or not [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -136,8 +136,8 @@ public partial interface IUserFacingError : ReadOnly = false, Description = @"Any key value pairs that can be injected inside error object", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties Property { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties Property { get; set; } /// RecommendedAction � localized. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -163,9 +163,9 @@ internal partial interface IUserFacingErrorInternal /// Unique code for this error string Code { get; set; } /// Additional related Errors - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError[] Detail { get; set; } /// Inner Error - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IInnerError InnerError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IInnerError InnerError { get; set; } /// Whether the operation will be retryable or not bool? IsRetryable { get; set; } /// Whether the operation is due to a user error or service error @@ -173,7 +173,7 @@ internal partial interface IUserFacingErrorInternal string Message { get; set; } /// Any key value pairs that can be injected inside error object - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties Property { get; set; } /// RecommendedAction � localized. string[] RecommendedAction { get; set; } /// Target of the error. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingError.json.cs b/src/DataProtection/generated/api/Models/Api202101/UserFacingError.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingError.json.cs rename to src/DataProtection/generated/api/Models/Api202101/UserFacingError.json.cs index 16ffadedd873..6304f8e0428d 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingError.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/UserFacingError.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -49,13 +49,13 @@ public partial class UserFacingError partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new UserFacingError(json) : null; } @@ -121,11 +121,11 @@ internal UserFacingError(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti return; } {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingError.FromJson(__u) )) ))() : null : Detail;} - {_innerError = If( json?.PropertyT("innerError"), out var __jsonInnerError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.InnerError.FromJson(__jsonInnerError) : InnerError;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingError.FromJson(__u) )) ))() : null : Detail;} + {_innerError = If( json?.PropertyT("innerError"), out var __jsonInnerError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.InnerError.FromJson(__jsonInnerError) : InnerError;} {_isRetryable = If( json?.PropertyT("isRetryable"), out var __jsonIsRetryable) ? (bool?)__jsonIsRetryable : IsRetryable;} {_isUserError = If( json?.PropertyT("isUserError"), out var __jsonIsUserError) ? (bool?)__jsonIsUserError : IsUserError;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorProperties.FromJson(__jsonProperties) : Property;} {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} {_recommendedAction = If( json?.PropertyT("recommendedAction"), out var __jsonRecommendedAction) ? If( __jsonRecommendedAction as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : RecommendedAction;} {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.PowerShell.cs index dfa8e45a8c32..ed8b05c81077 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class UserFacingErrorProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UserFacingErrorProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UserFacingErrorProperties(content); } @@ -80,7 +80,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -88,7 +88,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -107,7 +107,7 @@ internal UserFacingErrorProperties(global::System.Collections.IDictionary conten } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.TypeConverter.cs index 8a0361ca4b31..76f7fd715aed 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.cs b/src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.cs rename to src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.cs index 453ee38ad71a..70b90581838e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.cs +++ b/src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Any key value pairs that can be injected inside error object public partial class UserFacingErrorProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorPropertiesInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.dictionary.cs b/src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.dictionary.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.dictionary.cs rename to src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.dictionary.cs index 3146c036c72d..22df1613c4f8 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,6 +65,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorProperties source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.UserFacingErrorProperties source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.json.cs b/src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.json.cs rename to src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.json.cs index 147d4f6e389e..bb949cf83ece 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/UserFacingErrorProperties.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/UserFacingErrorProperties.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class UserFacingErrorProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingErrorProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IUserFacingErrorProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new UserFacingErrorProperties(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateForBackupRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ValidateForBackupRequest.PowerShell.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ValidateForBackupRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/ValidateForBackupRequest.PowerShell.cs index b2077b7b4cb9..c68f9c34d96a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateForBackupRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ValidateForBackupRequest.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class ValidateForBackupRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ValidateForBackupRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidateForBackupRequest(content); } @@ -80,7 +80,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -88,7 +88,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -101,12 +101,12 @@ internal ValidateForBackupRequest(global::System.Collections.IDictionary content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequestInternal)this).BackupInstance = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance) content.GetValueForProperty("BackupInstance",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequestInternal)this).BackupInstance, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequestInternal)this).BackupInstance = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance) content.GetValueForProperty("BackupInstance",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequestInternal)this).BackupInstance, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceTypeConverter.ConvertFrom); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -119,7 +119,7 @@ internal ValidateForBackupRequest(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequestInternal)this).BackupInstance = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance) content.GetValueForProperty("BackupInstance",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequestInternal)this).BackupInstance, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequestInternal)this).BackupInstance = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance) content.GetValueForProperty("BackupInstance",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequestInternal)this).BackupInstance, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceTypeConverter.ConvertFrom); AfterDeserializePSObject(content); } } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateForBackupRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ValidateForBackupRequest.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ValidateForBackupRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ValidateForBackupRequest.TypeConverter.cs index abd292fe1a6f..1685c5de7d86 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateForBackupRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ValidateForBackupRequest.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateForBackupRequest.cs b/src/DataProtection/generated/api/Models/Api202101/ValidateForBackupRequest.cs similarity index 73% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ValidateForBackupRequest.cs rename to src/DataProtection/generated/api/Models/Api202101/ValidateForBackupRequest.cs index 900e2b5eaad4..dcc34dbf7dc1 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateForBackupRequest.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ValidateForBackupRequest.cs @@ -1,19 +1,19 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Validate for backup request public partial class ValidateForBackupRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequestInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance _backupInstance; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance _backupInstance; /// Backup Instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance BackupInstance { get => (this._backupInstance = this._backupInstance ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstance()); set => this._backupInstance = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance BackupInstance { get => (this._backupInstance = this._backupInstance ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstance()); set => this._backupInstance = value; } /// Creates an new instance. public ValidateForBackupRequest() @@ -31,8 +31,8 @@ public partial interface IValidateForBackupRequest : ReadOnly = false, Description = @"Backup Instance", SerializedName = @"backupInstance", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance BackupInstance { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance BackupInstance { get; set; } } /// Validate for backup request @@ -40,7 +40,7 @@ internal partial interface IValidateForBackupRequestInternal { /// Backup Instance - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance BackupInstance { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance BackupInstance { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateForBackupRequest.json.cs b/src/DataProtection/generated/api/Models/Api202101/ValidateForBackupRequest.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ValidateForBackupRequest.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ValidateForBackupRequest.json.cs index 2e03b530ba33..2ebd01ac7502 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateForBackupRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ValidateForBackupRequest.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class ValidateForBackupRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ValidateForBackupRequest(json) : null; } @@ -94,7 +94,7 @@ internal ValidateForBackupRequest(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - {_backupInstance = If( json?.PropertyT("backupInstance"), out var __jsonBackupInstance) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstance.FromJson(__jsonBackupInstance) : BackupInstance;} + {_backupInstance = If( json?.PropertyT("backupInstance"), out var __jsonBackupInstance) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstance.FromJson(__jsonBackupInstance) : BackupInstance;} AfterFromJson(json); } } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateRestoreRequestObject.PowerShell.cs b/src/DataProtection/generated/api/Models/Api202101/ValidateRestoreRequestObject.PowerShell.cs similarity index 51% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ValidateRestoreRequestObject.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api202101/ValidateRestoreRequestObject.PowerShell.cs index 6b7c5ce7b088..14ede9f9efbd 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateRestoreRequestObject.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ValidateRestoreRequestObject.PowerShell.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -48,29 +48,29 @@ public partial class ValidateRestoreRequestObject partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ValidateRestoreRequestObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidateRestoreRequestObject(content); } @@ -80,7 +80,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -88,7 +88,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202102 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -101,18 +101,18 @@ internal ValidateRestoreRequestObject(global::System.Collections.IDictionary con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest) content.GetValueForProperty("RestoreRequestObject",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreRequestTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreRequestObjectRestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType = (string) content.GetValueForProperty("RestoreRequestObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("RestoreRequestObjectSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest) content.GetValueForProperty("RestoreRequestObject",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreRequestObjectRestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType = (string) content.GetValueForProperty("RestoreRequestObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("RestoreRequestObjectSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,13 +125,13 @@ internal ValidateRestoreRequestObject(global::System.Management.Automation.PSObj return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest) content.GetValueForProperty("RestoreRequestObject",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreRequestTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreRequestObjectRestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType = (string) content.GetValueForProperty("RestoreRequestObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("RestoreRequestObjectSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest) content.GetValueForProperty("RestoreRequestObject",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreRequestObjectRestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType = (string) content.GetValueForProperty("RestoreRequestObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("RestoreRequestObjectSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); AfterDeserializePSObject(content); } } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateRestoreRequestObject.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api202101/ValidateRestoreRequestObject.TypeConverter.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ValidateRestoreRequestObject.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api202101/ValidateRestoreRequestObject.TypeConverter.cs index cdb447f55287..a22d172c8ab0 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateRestoreRequestObject.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ValidateRestoreRequestObject.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateRestoreRequestObject.cs b/src/DataProtection/generated/api/Models/Api202101/ValidateRestoreRequestObject.cs similarity index 65% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ValidateRestoreRequestObject.cs rename to src/DataProtection/generated/api/Models/Api202101/ValidateRestoreRequestObject.cs index 42c1092c4475..2cd4bddc683a 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateRestoreRequestObject.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ValidateRestoreRequestObject.cs @@ -1,47 +1,47 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Validate restore request object public partial class ValidateRestoreRequestObject : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal { /// Internal Acessors for RestoreRequestObject - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal.RestoreRequestObject { get => (this._restoreRequestObject = this._restoreRequestObject ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreRequest()); set { {_restoreRequestObject = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal.RestoreRequestObject { get => (this._restoreRequestObject = this._restoreRequestObject ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreRequest()); set { {_restoreRequestObject = value;} } } /// Internal Acessors for RestoreRequestObjectRestoreTargetInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal.RestoreRequestObjectRestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal.RestoreRequestObjectRestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfo = value; } /// Internal Acessors for RestoreTargetInfoRecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObjectInternal.RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoRecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoRecoveryOption = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObjectInternal.RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoRecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoRecoveryOption = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest _restoreRequestObject; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest _restoreRequestObject; /// Gets or sets the restore request object. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest RestoreRequestObject { get => (this._restoreRequestObject = this._restoreRequestObject ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreRequest()); set => this._restoreRequestObject = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest RestoreRequestObject { get => (this._restoreRequestObject = this._restoreRequestObject ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreRequest()); set => this._restoreRequestObject = value; } /// Gets or sets the type of the source data store. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType RestoreRequestObjectSourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)RestoreRequestObject).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)RestoreRequestObject).SourceDataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType RestoreRequestObjectSourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)RestoreRequestObject).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)RestoreRequestObject).SourceDataStoreType = value ; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string RestoreRequestObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)RestoreRequestObject).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)RestoreRequestObject).ObjectType = value ; } + public string RestoreRequestObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)RestoreRequestObject).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)RestoreRequestObject).ObjectType = value ; } /// Type of Datasource object, used to initialize the right inherited type [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string RestoreTargetInfoObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoObjectType = value ; } + public string RestoreTargetInfoObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoObjectType = value ; } /// Recovery Option [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoRecoveryOption; } + public string RestoreTargetInfoRecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoRecoveryOption; } /// Target Restore region [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string RestoreTargetInfoRestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoRestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoRestoreLocation = value ?? null; } + public string RestoreTargetInfoRestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoRestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfoRestoreLocation = value ?? null; } /// Creates an new instance. public ValidateRestoreRequestObject() @@ -100,9 +100,9 @@ internal partial interface IValidateRestoreRequestObjectInternal { /// Gets or sets the restore request object. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest RestoreRequestObject { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest RestoreRequestObject { get; set; } /// Gets or sets the restore target information. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase RestoreRequestObjectRestoreTargetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IRestoreTargetInfoBase RestoreRequestObjectRestoreTargetInfo { get; set; } /// Gets or sets the type of the source data store. Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType RestoreRequestObjectSourceDataStoreType { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateRestoreRequestObject.json.cs b/src/DataProtection/generated/api/Models/Api202101/ValidateRestoreRequestObject.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210201Preview/ValidateRestoreRequestObject.json.cs rename to src/DataProtection/generated/api/Models/Api202101/ValidateRestoreRequestObject.json.cs index f6add8e8c5ae..3cba2286822e 100644 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ValidateRestoreRequestObject.json.cs +++ b/src/DataProtection/generated/api/Models/Api202101/ValidateRestoreRequestObject.json.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -47,13 +47,13 @@ public partial class ValidateRestoreRequestObject partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ValidateRestoreRequestObject(json) : null; } @@ -94,7 +94,7 @@ internal ValidateRestoreRequestObject(Microsoft.Azure.PowerShell.Cmdlets.DataPro { return; } - {_restoreRequestObject = If( json?.PropertyT("restoreRequestObject"), out var __jsonRestoreRequestObject) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreRequest.FromJson(__jsonRestoreRequestObject) : RestoreRequestObject;} + {_restoreRequestObject = If( json?.PropertyT("restoreRequestObject"), out var __jsonRestoreRequestObject) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreRequest.FromJson(__jsonRestoreRequestObject) : RestoreRequestObject;} AfterFromJson(json); } } diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupDiscreteRecoveryPoint.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupDiscreteRecoveryPoint.PowerShell.cs deleted file mode 100644 index 981be4703c94..000000000000 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupDiscreteRecoveryPoint.PowerShell.cs +++ /dev/null @@ -1,151 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - - /// Azure backup discrete RecoveryPoint - [System.ComponentModel.TypeConverter(typeof(AzureBackupDiscreteRecoveryPointTypeConverter))] - public partial class AzureBackupDiscreteRecoveryPoint - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AzureBackupDiscreteRecoveryPoint(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails[]) content.GetValueForProperty("RecoveryPointDataStoresDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RecoveryPointDataStoreDetailsTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName = (string) content.GetValueForProperty("RetentionTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion = (string) content.GetValueForProperty("RetentionTagVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal AzureBackupDiscreteRecoveryPoint(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRecoveryPointDataStoreDetails[]) content.GetValueForProperty("RecoveryPointDataStoresDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RecoveryPointDataStoreDetailsTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName = (string) content.GetValueForProperty("RetentionTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion = (string) content.GetValueForProperty("RetentionTagVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointInternal)this).ObjectType, 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.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AzureBackupDiscreteRecoveryPoint(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AzureBackupDiscreteRecoveryPoint(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupDiscreteRecoveryPoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Azure backup discrete RecoveryPoint - [System.ComponentModel.TypeConverter(typeof(AzureBackupDiscreteRecoveryPointTypeConverter))] - public partial interface IAzureBackupDiscreteRecoveryPoint - - { - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs deleted file mode 100644 index f9efa2c682c5..000000000000 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs +++ /dev/null @@ -1,154 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - - /// List Restore Ranges Request - [System.ComponentModel.TypeConverter(typeof(AzureBackupFindRestorableTimeRangesRequestResourceTypeConverter))] - public partial class AzureBackupFindRestorableTimeRangesRequestResource - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AzureBackupFindRestorableTimeRangesRequestResource(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesRequestTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestHeadersTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestParametersTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("ContentSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime = (string) content.GetValueForProperty("ContentStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime = (string) content.GetValueForProperty("ContentEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime, global::System.Convert.ToString); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal AzureBackupFindRestorableTimeRangesRequestResource(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequest) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupFindRestorableTimeRangesRequestTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestHeadersTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppWorkerRequestParametersTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("ContentSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime = (string) content.GetValueForProperty("ContentStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime = (string) content.GetValueForProperty("ContentEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime, 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.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResource DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AzureBackupFindRestorableTimeRangesRequestResource(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AzureBackupFindRestorableTimeRangesRequestResource(content); - } - - /// - /// Creates a new instance of , deserializing the content - /// from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupFindRestorableTimeRangesRequestResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// List Restore Ranges Request - [System.ComponentModel.TypeConverter(typeof(AzureBackupFindRestorableTimeRangesRequestResourceTypeConverter))] - public partial interface IAzureBackupFindRestorableTimeRangesRequestResource - - { - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJob.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJob.PowerShell.cs deleted file mode 100644 index 31b7317a90ba..000000000000 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJob.PowerShell.cs +++ /dev/null @@ -1,213 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - - /// AzureBackup Job Class - [System.ComponentModel.TypeConverter(typeof(AzureBackupJobTypeConverter))] - public partial class AzureBackupJob - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AzureBackupJob(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ActivityId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).BackupInstanceId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceSetName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Duration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Operation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).OperationCategory, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).PolicyId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).PolicyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ProgressUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).RestoreType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceResourceGroup, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceSubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Status, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).VaultName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Etag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceDataStoreName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DestinationDataStoreName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTaskTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime, (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 AzureBackupJob(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ActivityId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).BackupInstanceId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceSetName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DataSourceType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Duration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Operation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).OperationCategory, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).PolicyId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).PolicyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ProgressUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).RestoreType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceResourceGroup, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceSubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Status, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).VaultName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).Etag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceDataStoreName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).DestinationDataStoreName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTaskTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AzureBackupJob(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AzureBackupJob(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// AzureBackup Job Class - [System.ComponentModel.TypeConverter(typeof(AzureBackupJobTypeConverter))] - public partial interface IAzureBackupJob - - { - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResource.PowerShell.cs deleted file mode 100644 index 2333c2229d97..000000000000 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupJobResource.PowerShell.cs +++ /dev/null @@ -1,223 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - - /// AzureBackup Job Resource Class - [System.ComponentModel.TypeConverter(typeof(AzureBackupJobResourceTypeConverter))] - public partial class AzureBackupJobResource - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AzureBackupJobResource(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJobTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ActivityId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).BackupInstanceId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceSetName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Duration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Operation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).OperationCategory, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).PolicyId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).PolicyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ProgressUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).RestoreType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceResourceGroup, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceSubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Status, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).VaultName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Etag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceDataStoreName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DestinationDataStoreName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTaskTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime, (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 AzureBackupJobResource(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJob) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupJobTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ActivityId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).BackupInstanceId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceSetName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DataSourceType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Duration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Operation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).OperationCategory, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).PolicyId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).PolicyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ProgressUrl, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).RestoreType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceResourceGroup, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceSubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Status, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).VaultName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).Etag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceDataStoreName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).DestinationDataStoreName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTaskTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AzureBackupJobResource(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AzureBackupJobResource(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// AzureBackup Job Resource Class - [System.ComponentModel.TypeConverter(typeof(AzureBackupJobResourceTypeConverter))] - public partial interface IAzureBackupJobResource - - { - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs deleted file mode 100644 index 6b18cf364f11..000000000000 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs +++ /dev/null @@ -1,150 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - - /// AzureBackup Restore with Rehydration Request - [System.ComponentModel.TypeConverter(typeof(AzureBackupRestoreWithRehydrationRequestTypeConverter))] - public partial class AzureBackupRestoreWithRehydrationRequest - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AzureBackupRestoreWithRehydrationRequest(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal AzureBackupRestoreWithRehydrationRequest(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption = (string) content.GetValueForProperty("RestoreTargetInfoRecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRecoveryOption, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType = (string) content.GetValueForProperty("RestoreTargetInfoObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation = (string) content.GetValueForProperty("RestoreTargetInfoRestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfoRestoreLocation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreTargetInfoBaseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, 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.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AzureBackupRestoreWithRehydrationRequest(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AzureBackupRestoreWithRehydrationRequest(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json - /// string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreWithRehydrationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// AzureBackup Restore with Rehydration Request - [System.ComponentModel.TypeConverter(typeof(AzureBackupRestoreWithRehydrationRequestTypeConverter))] - public partial interface IAzureBackupRestoreWithRehydrationRequest - - { - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstance.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstance.PowerShell.cs deleted file mode 100644 index 26e639b6db82..000000000000 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupInstance.PowerShell.cs +++ /dev/null @@ -1,149 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - - /// Backup Instance - [System.ComponentModel.TypeConverter(typeof(BackupInstanceTypeConverter))] - public partial class BackupInstance - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal BackupInstance(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceSetTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PolicyInfoTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ProtectionStatusDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ObjectType, global::System.Convert.ToString); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal BackupInstance(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DatasourceSetTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PolicyInfoTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ProtectionStatusDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.UserFacingErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceInternal)this).ObjectType, 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.DataProtection.Models.Api20210201Preview.IBackupInstance DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new BackupInstance(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new BackupInstance(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Backup Instance - [System.ComponentModel.TypeConverter(typeof(BackupInstanceTypeConverter))] - public partial interface IBackupInstance - - { - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResource.PowerShell.cs deleted file mode 100644 index 15491a3acc1c..000000000000 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/BackupVaultResource.PowerShell.cs +++ /dev/null @@ -1,159 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - - /// Backup Vault Resource - [System.ComponentModel.TypeConverter(typeof(BackupVaultResourceTypeConverter))] - public partial class BackupVaultResource - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal BackupVaultResource(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.StorageSettingTypeConverter.ConvertFrom)); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal BackupVaultResource(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVault) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppIdentityDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DppTrackedResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.SystemDataTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResourceInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.StorageSettingTypeConverter.ConvertFrom)); - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new BackupVaultResource(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new BackupVaultResource(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Backup Vault Resource - [System.ComponentModel.TypeConverter(typeof(BackupVaultResourceTypeConverter))] - public partial interface IBackupVaultResource - - { - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryValueForSingleApi.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryValueForSingleApi.PowerShell.cs deleted file mode 100644 index 6c01915c310d..000000000000 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ClientDiscoveryValueForSingleApi.PowerShell.cs +++ /dev/null @@ -1,153 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - - /// Available operation details. - [System.ComponentModel.TypeConverter(typeof(ClientDiscoveryValueForSingleApiTypeConverter))] - public partial class ClientDiscoveryValueForSingleApi - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ClientDiscoveryValueForSingleApi(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryDisplayTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Origin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ClientDiscoveryValueForSingleApi(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryDisplayTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).Origin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ClientDiscoveryValueForSingleApi(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ClientDiscoveryValueForSingleApi(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Available operation details. - [System.ComponentModel.TypeConverter(typeof(ClientDiscoveryValueForSingleApiTypeConverter))] - public partial interface IClientDiscoveryValueForSingleApi - - { - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfo.PowerShell.cs deleted file mode 100644 index 31d8f562901f..000000000000 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/JobExtendedInfo.PowerShell.cs +++ /dev/null @@ -1,153 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - - /// Extended Information about the job - [System.ComponentModel.TypeConverter(typeof(JobExtendedInfoTypeConverter))] - public partial class JobExtendedInfo - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new JobExtendedInfo(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new JobExtendedInfo(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal JobExtendedInfo(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("SourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).TargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("TargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).TargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).BackupInstanceState = (string) content.GetValueForProperty("BackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).BackupInstanceState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).DataTransferredInByte = (double?) content.GetValueForProperty("DataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).DataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).RecoveryDestination = (string) content.GetValueForProperty("RecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).RecoveryDestination, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[]) content.GetValueForProperty("SubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTaskTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime, (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 JobExtendedInfo(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("SourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).TargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("TargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).TargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).BackupInstanceState = (string) content.GetValueForProperty("BackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).BackupInstanceState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).DataTransferredInByte = (double?) content.GetValueForProperty("DataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).DataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).RecoveryDestination = (string) content.GetValueForProperty("RecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).RecoveryDestination, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobSubTask[]) content.GetValueForProperty("SubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.JobSubTaskTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime, (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.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Extended Information about the job - [System.ComponentModel.TypeConverter(typeof(JobExtendedInfoTypeConverter))] - public partial interface IJobExtendedInfo - - { - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20210201Preview/OperationResource.PowerShell.cs deleted file mode 100644 index 7afb8d32693a..000000000000 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/OperationResource.PowerShell.cs +++ /dev/null @@ -1,157 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - - /// Operation Resource - [System.ComponentModel.TypeConverter(typeof(OperationResourceTypeConverter))] - public partial class OperationResource - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResource DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new OperationResource(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new OperationResource(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal OperationResource(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationExtendedInfoTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Status, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Target, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).ObjectType, global::System.Convert.ToString); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal OperationResource(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationExtendedInfo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.OperationExtendedInfoTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Status, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ErrorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).Target, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationResourceInternal)this).ObjectType, global::System.Convert.ToString); - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Operation Resource - [System.ComponentModel.TypeConverter(typeof(OperationResourceTypeConverter))] - public partial interface IOperationResource - - { - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedBackupCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedBackupCriteria.PowerShell.cs deleted file mode 100644 index 5d6832dfacc1..000000000000 --- a/src/DataProtection/generated/api/Models/Api20210201Preview/ScheduleBasedBackupCriteria.PowerShell.cs +++ /dev/null @@ -1,145 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - - /// Schedule based backup criteria - [System.ComponentModel.TypeConverter(typeof(ScheduleBasedBackupCriteriaTypeConverter))] - public partial class ScheduleBasedBackupCriteria - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ScheduleBasedBackupCriteria(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ScheduleBasedBackupCriteria(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ScheduleBasedBackupCriteria(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[]) content.GetValueForProperty("AbsoluteCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker.CreateFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay[]) content.GetValueForProperty("DaysOfMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DayTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[]) content.GetValueForProperty("DaysOfTheWeek",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek.CreateFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month[]) content.GetValueForProperty("MonthsOfYear",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month.CreateFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime = (global::System.DateTime[]) content.GetValueForProperty("ScheduleTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime, __y => TypeConverterExtensions.SelectToArray(__y, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber[]) content.GetValueForProperty("WeeksOfTheMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber.CreateFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ScheduleBasedBackupCriteria(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[]) content.GetValueForProperty("AbsoluteCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker.CreateFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDay[]) content.GetValueForProperty("DaysOfMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.DayTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[]) content.GetValueForProperty("DaysOfTheWeek",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek.CreateFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month[]) content.GetValueForProperty("MonthsOfYear",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month.CreateFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime = (global::System.DateTime[]) content.GetValueForProperty("ScheduleTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime, __y => TypeConverterExtensions.SelectToArray(__y, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified))); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber[]) content.GetValueForProperty("WeeksOfTheMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber.CreateFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Schedule based backup criteria - [System.ComponentModel.TypeConverter(typeof(ScheduleBasedBackupCriteriaTypeConverter))] - public partial interface IScheduleBasedBackupCriteria - - { - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded.cs b/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded.cs index 84b8db1dd49d..d33c19bd6d26 100644 --- a/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded.cs +++ b/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] AdhocBackup=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/backup" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Backup, @"AzDataProtectionBackupInstanceAdhoc_BackupExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Trigger adhoc backup ")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded : global::System.Management.Automation.PSCmdlet, @@ -111,10 +111,10 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded : public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TriggerBackupRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TriggerBackupRequest(); /// Trigger backup request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -199,24 +199,24 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded : /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// Intializes a new instance of the cmdlet class. @@ -445,12 +445,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -467,7 +467,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -485,12 +485,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -502,7 +502,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded.cs index 8f06dd706d5a..656c9f564efe 100644 --- a/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded.cs +++ b/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] AdhocBackup=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/backup" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Backup, @"AzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Trigger adhoc backup ")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -105,10 +105,10 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentity public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.TriggerBackupRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.TriggerBackupRequest(); /// Trigger backup request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerBackupRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerBackupRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -147,24 +147,24 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentity /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// Intializes a new instance of the cmdlet @@ -414,12 +414,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -436,7 +436,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -454,12 +454,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -471,7 +471,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/FindAzDataProtectionRestorableTimeRange_PostExpanded.cs b/src/DataProtection/generated/cmdlets/FindAzDataProtectionRestorableTimeRange_PostExpanded.cs new file mode 100644 index 000000000000..04f04c9d95f8 --- /dev/null +++ b/src/DataProtection/generated/cmdlets/FindAzDataProtectionRestorableTimeRange_PostExpanded.cs @@ -0,0 +1,450 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// + /// [OpenAPI] Post=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstances}/findRestorableTimeRanges" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Find, @"AzDataProtectionRestorableTimeRange_PostExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] + public partial class FindAzDataProtectionRestorableTimeRange_PostExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Backing field for property. + private string _backupInstanceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"backupInstances", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string BackupInstanceName { get => this._backupInstanceName; set => this._backupInstanceName = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// End time for the List Restore Ranges request + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "End time for the List Restore Ranges request")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"End time for the List Restore Ranges request", + SerializedName = @"endTime", + PossibleTypes = new [] { typeof(string) })] + public string EndTime { get => ParametersBody.EndTime ?? null; set => ParametersBody.EndTime = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupFindRestorableTimeRangesRequest(); + + /// List Restore Ranges Request + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group where the backup vault is present. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the backup vault is present.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group where the backup vault is present.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Gets or sets the type of the source data store. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Gets or sets the type of the source data store.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Gets or sets the type of the source data store.", + SerializedName = @"sourceDataStoreType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType SourceDataStoreType { get => ParametersBody.SourceDataStoreType; set => ParametersBody.SourceDataStoreType = value; } + + /// Start time for the List Restore Ranges request + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Start time for the List Restore Ranges request")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Start time for the List Restore Ranges request", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(string) })] + public string StartTime { get => ParametersBody.StartTime ?? null; set => ParametersBody.StartTime = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The subscription Id. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription Id.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private string _vaultName; + + /// The name of the backup vault. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup vault.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the backup vault.", + SerializedName = @"vaultName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string VaultName { get => this._vaultName; set => this._vaultName = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public FindAzDataProtectionRestorableTimeRange_PostExpanded() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FindRestorableTimeRangesPost' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FindRestorableTimeRangesPost(VaultName, ResourceGroupName, SubscriptionId, BackupInstanceName, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,BackupInstanceName=BackupInstanceName,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_Get.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_Get.cs index bcff2d6be1ff..c0cedc1a78c9 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_Get.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_Get.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionBackupInstance_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Gets a backup instance with name in a backup vault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionBackupInstance_Get : global::System.Management.Automation.PSCmdlet, @@ -159,24 +159,24 @@ public partial class GetAzDataProtectionBackupInstance_Get : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -348,12 +348,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -370,7 +370,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -388,12 +388,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -405,7 +405,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_GetViaIdentity.cs index 82dcec11471d..30cada9893dd 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_GetViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_GetViaIdentity.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionBackupInstance_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Gets a backup instance with name in a backup vault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionBackupInstance_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -106,24 +106,24 @@ public partial class GetAzDataProtectionBackupInstance_GetViaIdentity : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -316,12 +316,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -338,7 +338,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -356,12 +356,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -373,7 +373,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_List.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_List.cs index 8a781cf0462b..54f34e85e8b5 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_List.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_List.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionBackupInstance_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Gets a backup instances belonging to a backup vault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionBackupInstance_List : global::System.Management.Automation.PSCmdlet, @@ -144,24 +144,24 @@ public partial class GetAzDataProtectionBackupInstance_List : global::System.Man /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -333,12 +333,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -355,7 +355,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -373,12 +373,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_Get.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_Get.cs index cd857f842c88..5eeb47337191 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_Get.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_Get.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionBackupPolicy_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Gets a backup policy belonging to a backup vault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionBackupPolicy_Get : global::System.Management.Automation.PSCmdlet, @@ -158,24 +158,24 @@ public partial class GetAzDataProtectionBackupPolicy_Get : global::System.Manage /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -347,12 +347,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -369,7 +369,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -387,12 +387,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -404,7 +404,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_GetViaIdentity.cs index 8d7af3ae6240..894c234b1cba 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_GetViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_GetViaIdentity.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionBackupPolicy_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Gets a backup policy belonging to a backup vault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionBackupPolicy_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -106,24 +106,24 @@ public partial class GetAzDataProtectionBackupPolicy_GetViaIdentity : global::Sy /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -316,12 +316,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -338,7 +338,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -356,12 +356,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -373,7 +373,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_List.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_List.cs index 0374ea94a334..ef535195e0de 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_List.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_List.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionBackupPolicy_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns list of backup policies belonging to a backup vault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionBackupPolicy_List : global::System.Management.Automation.PSCmdlet, @@ -144,24 +144,24 @@ public partial class GetAzDataProtectionBackupPolicy_List : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -333,12 +333,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -355,7 +355,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -373,12 +373,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_Get.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_Get.cs index e95eb034ae49..3b89a089b695 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_Get.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_Get.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionBackupVaultResource_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns resource collection belonging to a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionBackupVaultResource_Get : global::System.Management.Automation.PSCmdlet, @@ -117,24 +117,24 @@ public partial class GetAzDataProtectionBackupVaultResource_Get : global::System /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -306,12 +306,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -328,7 +328,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -346,12 +346,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_Get1.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_Get1.cs index 2eb645eec0c0..6c4aa01d31a2 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_Get1.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_Get1.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionBackupVaultResource_Get1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns resource collection belonging to a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionBackupVaultResource_Get1 : global::System.Management.Automation.PSCmdlet, @@ -131,24 +131,24 @@ public partial class GetAzDataProtectionBackupVaultResource_Get1 : global::Syste /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -320,12 +320,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -342,7 +342,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -360,12 +360,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_GetViaIdentity.cs index ccaa0e2b8d42..7c3c66d9b10a 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_GetViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_GetViaIdentity.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionBackupVaultResource_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns resource collection belonging to a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionBackupVaultResource_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -107,24 +107,24 @@ public partial class GetAzDataProtectionBackupVaultResource_GetViaIdentity : glo /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -305,12 +305,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -327,7 +327,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -345,12 +345,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_GetViaIdentity1.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_GetViaIdentity1.cs index 3040f6c03894..f2e75007644b 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_GetViaIdentity1.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVaultResource_GetViaIdentity1.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionBackupVaultResource_GetViaIdentity1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns resource collection belonging to a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionBackupVaultResource_GetViaIdentity1 : global::System.Management.Automation.PSCmdlet, @@ -107,24 +107,24 @@ public partial class GetAzDataProtectionBackupVaultResource_GetViaIdentity1 : gl /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -309,12 +309,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -331,7 +331,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -349,12 +349,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_Get.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_Get.cs index 7f9c24ab7809..74a7afc0e67c 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_Get.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_Get.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionBackupVault_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns a resource belonging to a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionBackupVault_Get : global::System.Management.Automation.PSCmdlet, @@ -144,24 +144,24 @@ public partial class GetAzDataProtectionBackupVault_Get : global::System.Managem /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -333,12 +333,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -355,7 +355,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -373,12 +373,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -390,7 +390,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity.cs index 90c32682df1a..319ada8b0e59 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionBackupVault_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns a resource belonging to a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionBackupVault_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -106,24 +106,24 @@ public partial class GetAzDataProtectionBackupVault_GetViaIdentity : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -312,12 +312,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -334,7 +334,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -352,12 +352,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -369,7 +369,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_Get.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_Get.cs index 02053a64c182..51840145d424 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_Get.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_Get.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/{jobId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionJob_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Gets a job with id in a backup vault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionJob_Get : global::System.Management.Automation.PSCmdlet, @@ -161,24 +161,24 @@ public partial class GetAzDataProtectionJob_Get : global::System.Management.Auto /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -350,12 +350,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -372,7 +372,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, Id=Id }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -390,12 +390,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -407,7 +407,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_GetViaIdentity.cs index f2f7a6795063..43b99f390694 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_GetViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_GetViaIdentity.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/{jobId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionJob_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Gets a job with id in a backup vault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionJob_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -106,24 +106,24 @@ public partial class GetAzDataProtectionJob_GetViaIdentity : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -316,12 +316,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -338,7 +338,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -356,12 +356,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -373,7 +373,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_List.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_List.cs index 2961ca5ee48b..4269811b9382 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_List.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_List.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionJob_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns list of jobs belonging to a backup vault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionJob_List : global::System.Management.Automation.PSCmdlet, @@ -144,24 +144,24 @@ public partial class GetAzDataProtectionJob_List : global::System.Management.Aut /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -333,12 +333,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -355,7 +355,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -373,12 +373,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionOperation_List.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionOperation_List.cs index 251d3e47a099..ee2e151e36d8 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionOperation_List.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionOperation_List.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionOperation_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns the list of available operations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionOperation_List : global::System.Management.Automation.PSCmdlet, @@ -99,24 +99,24 @@ public partial class GetAzDataProtectionOperation_List : global::System.Manageme /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -285,12 +285,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -307,7 +307,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -325,12 +325,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPointList_Get.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPointList_Get.cs index 8aa33688c60c..dea6dd74e08e 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPointList_Get.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPointList_Get.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionRecoveryPointList_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns a list of Recovery Points for a DataSource in a vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionRecoveryPointList_Get : global::System.Management.Automation.PSCmdlet, @@ -187,24 +187,24 @@ public partial class GetAzDataProtectionRecoveryPointList_Get : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -376,12 +376,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -398,7 +398,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -416,12 +416,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPointList_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPointList_GetViaIdentity.cs index 6eab16321f44..f91975ce8421 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPointList_GetViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPointList_GetViaIdentity.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionRecoveryPointList_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns a list of Recovery Points for a DataSource in a vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionRecoveryPointList_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -135,24 +135,24 @@ public partial class GetAzDataProtectionRecoveryPointList_GetViaIdentity : globa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -345,12 +345,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -367,7 +367,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -385,12 +385,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_Get.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_Get.cs index fdb31ded8a5a..255d98f3fe2d 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_Get.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_Get.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints/{recoveryPointId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionRecoveryPoint_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Gets a Recovery Point using recoveryPointId for a Datasource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionRecoveryPoint_Get : global::System.Management.Automation.PSCmdlet, @@ -172,24 +172,24 @@ public partial class GetAzDataProtectionRecoveryPoint_Get : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -361,12 +361,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -383,7 +383,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, Id=Id }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -401,12 +401,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -418,7 +418,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_GetViaIdentity.cs index cb907358b9f5..68863beabefb 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_GetViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_GetViaIdentity.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints/{recoveryPointId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionRecoveryPoint_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Gets a Recovery Point using recoveryPointId for a Datasource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionRecoveryPoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -106,24 +106,24 @@ public partial class GetAzDataProtectionRecoveryPoint_GetViaIdentity : global::S /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -320,12 +320,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -342,7 +342,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -360,12 +360,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_Create.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_Create.cs index fd546a78246a..a63ffefffdf5 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_Create.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_Create.cs @@ -7,13 +7,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + /// Create or update a backup instance in a backup vault /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataProtectionBackupInstance_Create", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Create or update a backup instance in a backup vault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class NewAzDataProtectionBackupInstance_Create : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener @@ -101,7 +102,7 @@ public partial class NewAzDataProtectionBackupInstance_Create : global::System.M public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource _parameter; /// BackupInstance Resource [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "BackupInstance Resource", ValueFromPipeline = true)] @@ -110,8 +111,8 @@ public partial class NewAzDataProtectionBackupInstance_Create : global::System.M ReadOnly = false, Description = @"BackupInstance Resource", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -185,24 +186,24 @@ public partial class NewAzDataProtectionBackupInstance_Create : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -429,12 +430,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -451,7 +452,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -469,12 +470,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -486,7 +487,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_CreateExpanded.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_CreateExpanded.cs index 740f6b559df4..76b7c08270eb 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_CreateExpanded.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_CreateExpanded.cs @@ -7,13 +7,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + /// Create or update a backup instance in a backup vault /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataProtectionBackupInstance_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Create or update a backup instance in a backup vault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class NewAzDataProtectionBackupInstance_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener @@ -101,10 +102,10 @@ public partial class NewAzDataProtectionBackupInstance_CreateExpanded : global:: public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupInstanceResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResource(); /// BackupInstance Resource - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -119,8 +120,8 @@ public partial class NewAzDataProtectionBackupInstance_CreateExpanded : global:: ReadOnly = false, Description = @"BackupInstanceResource properties", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance Property { get => ParametersBody.Property ?? null /* object */; set => ParametersBody.Property = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance Property { get => ParametersBody.Property ?? null /* object */; set => ParametersBody.Property = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -189,24 +190,24 @@ public partial class NewAzDataProtectionBackupInstance_CreateExpanded : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -433,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -455,7 +456,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -473,12 +474,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -490,7 +491,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_Create.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_Create.cs index 0c404fdadb94..09f2de6438dc 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_Create.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_Create.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataProtectionBackupPolicy_Create", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Creates or Updates a backup policy belonging to a backup vault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class NewAzDataProtectionBackupPolicy_Create : global::System.Management.Automation.PSCmdlet, @@ -88,7 +88,7 @@ public partial class NewAzDataProtectionBackupPolicy_Create : global::System.Man public string Name { get => this._name; set => this._name = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource _parameter; /// BaseBackupPolicy resource [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "BaseBackupPolicy resource", ValueFromPipeline = true)] @@ -97,8 +97,8 @@ public partial class NewAzDataProtectionBackupPolicy_Create : global::System.Man ReadOnly = false, Description = @"BaseBackupPolicy resource", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -172,24 +172,24 @@ public partial class NewAzDataProtectionBackupPolicy_Create : global::System.Man /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -361,12 +361,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -383,7 +383,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -401,12 +401,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -418,7 +418,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_CreateExpanded.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_CreateExpanded.cs index d18afa0dce64..00a89ba7d4ee 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_CreateExpanded.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_CreateExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataProtectionBackupPolicy_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Creates or Updates a backup policy belonging to a backup vault")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class NewAzDataProtectionBackupPolicy_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -111,10 +111,10 @@ public partial class NewAzDataProtectionBackupPolicy_CreateExpanded : global::Sy public string ObjectType { get => ParametersBody.ObjectType ?? null; set => ParametersBody.ObjectType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BaseBackupPolicyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BaseBackupPolicyResource(); /// BaseBackupPolicy resource - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -188,24 +188,24 @@ public partial class NewAzDataProtectionBackupPolicy_CreateExpanded : global::Sy /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -377,12 +377,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -399,7 +399,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -417,12 +417,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -434,7 +434,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_Create.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_Create.cs index 68efb26a076c..10fce71d0a91 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_Create.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_Create.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataProtectionBackupVault_Create", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Creates or updates a BackupVault resource belonging to a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class NewAzDataProtectionBackupVault_Create : global::System.Management.Automation.PSCmdlet, @@ -87,7 +87,7 @@ public partial class NewAzDataProtectionBackupVault_Create : global::System.Mana public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource _parameter; /// Backup Vault Resource [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Backup Vault Resource", ValueFromPipeline = true)] @@ -96,8 +96,8 @@ public partial class NewAzDataProtectionBackupVault_Create : global::System.Mana ReadOnly = false, Description = @"Backup Vault Resource", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -171,24 +171,24 @@ public partial class NewAzDataProtectionBackupVault_Create : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -414,12 +414,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -436,7 +436,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -454,12 +454,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -471,7 +471,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_CreateExpanded.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_CreateExpanded.cs index 8200602bd9a0..663e2e7ef4f2 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_CreateExpanded.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_CreateExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataProtectionBackupVault_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Creates or updates a BackupVault resource belonging to a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -120,10 +120,10 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.BackupVaultResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupVaultResource(); /// Backup Vault Resource - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -162,15 +162,15 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys /// Storage Settings [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Storage Settings")] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Storage Settings")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"Storage Settings", SerializedName = @"storageSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[] StorageSetting { get => ParametersBody.StorageSetting ?? null /* arrayOf */; set => ParametersBody.StorageSetting = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[] StorageSetting { get => ParametersBody.StorageSetting ?? null /* arrayOf */; set => ParametersBody.StorageSetting = value; } /// Backing field for property. private string _subscriptionId; @@ -199,8 +199,8 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } /// Backing field for property. private string _vaultName; @@ -221,24 +221,24 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -464,12 +464,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -486,7 +486,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -504,12 +504,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -521,7 +521,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_Delete.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_Delete.cs index 14d0c186aa63..ec9ad3321c4c 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_Delete.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_Delete.cs @@ -179,12 +179,12 @@ public partial class RemoveAzDataProtectionBackupInstance_Delete : global::Syste /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -430,12 +430,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -452,7 +452,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_DeleteViaIdentity.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_DeleteViaIdentity.cs index 024fa4575211..44e593df92c4 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_DeleteViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_DeleteViaIdentity.cs @@ -126,12 +126,12 @@ public partial class RemoveAzDataProtectionBackupInstance_DeleteViaIdentity : gl /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -397,12 +397,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -419,7 +419,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_Delete.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_Delete.cs index b8c8ab78485c..535a0d8c9aa5 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_Delete.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_Delete.cs @@ -165,12 +165,12 @@ public partial class RemoveAzDataProtectionBackupPolicy_Delete : global::System. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -362,12 +362,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -384,7 +384,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_DeleteViaIdentity.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_DeleteViaIdentity.cs index 1f06d77917a2..e10fa818e397 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_DeleteViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_DeleteViaIdentity.cs @@ -113,12 +113,12 @@ public partial class RemoveAzDataProtectionBackupPolicy_DeleteViaIdentity : glob /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -334,12 +334,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -356,7 +356,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_Delete.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_Delete.cs index ca7c0a013793..5329a05ec0be 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_Delete.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_Delete.cs @@ -161,12 +161,12 @@ public partial class RemoveAzDataProtectionBackupVault_Delete : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -382,12 +382,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -404,7 +404,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_DeleteViaIdentity.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_DeleteViaIdentity.cs index 6a0ae21a5c38..9e39835a43a9 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_DeleteViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_DeleteViaIdentity.cs @@ -123,12 +123,12 @@ public partial class RemoveAzDataProtectionBackupVault_DeleteViaIdentity : globa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -364,12 +364,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -386,7 +386,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_Trigger.cs b/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_Trigger.cs index 583ba5ef3e76..8f2886b36d67 100644 --- a/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_Trigger.cs +++ b/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_Trigger.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] TriggerRestore=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/restore" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzDataProtectionBackupInstanceRestore_Trigger", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Triggers restore for a BackupInstance")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class StartAzDataProtectionBackupInstanceRestore_Trigger : global::System.Management.Automation.PSCmdlet, @@ -100,7 +100,7 @@ public partial class StartAzDataProtectionBackupInstanceRestore_Trigger : global public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest _parameter; /// Azure backup restore request [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Azure backup restore request", ValueFromPipeline = true)] @@ -109,8 +109,8 @@ public partial class StartAzDataProtectionBackupInstanceRestore_Trigger : global ReadOnly = false, Description = @"Azure backup restore request", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -184,24 +184,24 @@ public partial class StartAzDataProtectionBackupInstanceRestore_Trigger : global /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -428,12 +428,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -450,7 +450,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -468,12 +468,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -485,7 +485,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_TriggerExpanded.cs b/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_TriggerExpanded.cs index ccc2521839b8..a04ad3550383 100644 --- a/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_TriggerExpanded.cs +++ b/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_TriggerExpanded.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] TriggerRestore=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/restore" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzDataProtectionBackupInstanceRestore_TriggerExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Triggers restore for a BackupInstance")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class StartAzDataProtectionBackupInstanceRestore_TriggerExpanded : global::System.Management.Automation.PSCmdlet, @@ -111,10 +111,10 @@ public partial class StartAzDataProtectionBackupInstanceRestore_TriggerExpanded public string ObjectType { get => ParametersBody.ObjectType ?? null; set => ParametersBody.ObjectType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.AzureBackupRestoreRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.AzureBackupRestoreRequest(); /// Azure backup restore request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -222,24 +222,24 @@ public partial class StartAzDataProtectionBackupInstanceRestore_TriggerExpanded /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -468,12 +468,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -490,7 +490,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -508,12 +508,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -525,7 +525,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_Validate.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_Validate.cs index c260d7a80021..b60567f3d2f0 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_Validate.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_Validate.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDataProtectionBackupInstanceRestore_Validate", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Validates if Restore can be triggered for a DataSource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupInstanceRestore_Validate : global::System.Management.Automation.PSCmdlet, @@ -101,7 +101,7 @@ public partial class TestAzDataProtectionBackupInstanceRestore_Validate : global public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject _parameter; /// Validate restore request object [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Validate restore request object", ValueFromPipeline = true)] @@ -110,8 +110,8 @@ public partial class TestAzDataProtectionBackupInstanceRestore_Validate : global ReadOnly = false, Description = @"Validate restore request object", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -185,24 +185,24 @@ public partial class TestAzDataProtectionBackupInstanceRestore_Validate : global /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -429,12 +429,12 @@ public TestAzDataProtectionBackupInstanceRestore_Validate() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -451,7 +451,7 @@ public TestAzDataProtectionBackupInstanceRestore_Validate() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -469,12 +469,12 @@ public TestAzDataProtectionBackupInstanceRestore_Validate() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -486,7 +486,7 @@ public TestAzDataProtectionBackupInstanceRestore_Validate() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateExpanded.cs index adff24dea60b..11aedc8af47e 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDataProtectionBackupInstanceRestore_ValidateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Validates if Restore can be triggered for a DataSource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupInstanceRestore_ValidateExpanded : global::System.Management.Automation.PSCmdlet, @@ -101,10 +101,10 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateExpanded public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ValidateRestoreRequestObject(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ValidateRestoreRequestObject(); /// Validate restore request object - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -223,24 +223,24 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateExpanded /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -469,12 +469,12 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -491,7 +491,7 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -509,12 +509,12 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -526,7 +526,7 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity.cs index 5719cbcfb801..b7de7b44c6a8 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDataProtectionBackupInstanceRestore_ValidateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Validates if Restore can be triggered for a DataSource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -95,7 +95,7 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateViaIdenti public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject _parameter; /// Validate restore request object [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Validate restore request object", ValueFromPipeline = true)] @@ -104,8 +104,8 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateViaIdenti ReadOnly = false, Description = @"Validate restore request object", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -133,24 +133,24 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateViaIdenti /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -399,12 +399,12 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -421,7 +421,7 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -439,12 +439,12 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -456,7 +456,7 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded.cs index a4a6e86180ee..c953ce7a34a2 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Validates if Restore can be triggered for a DataSource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -95,10 +95,10 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateViaIdenti public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ValidateRestoreRequestObject(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ValidateRestoreRequestObject(); /// Validate restore request object - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -171,24 +171,24 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateViaIdenti /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -438,12 +438,12 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -460,7 +460,7 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -478,12 +478,12 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -495,7 +495,7 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_Validate.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_Validate.cs index f920a7898c59..5269b791e3d4 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_Validate.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_Validate.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDataProtectionBackupInstance_Validate", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Validate whether adhoc backup will be successful or not")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupInstance_Validate : global::System.Management.Automation.PSCmdlet, @@ -87,7 +87,7 @@ public partial class TestAzDataProtectionBackupInstance_Validate : global::Syste public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest _parameter; /// Validate for backup request [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Validate for backup request", ValueFromPipeline = true)] @@ -96,8 +96,8 @@ public partial class TestAzDataProtectionBackupInstance_Validate : global::Syste ReadOnly = false, Description = @"Validate for backup request", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -171,24 +171,24 @@ public partial class TestAzDataProtectionBackupInstance_Validate : global::Syste /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -414,12 +414,12 @@ public TestAzDataProtectionBackupInstance_Validate() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -436,7 +436,7 @@ public TestAzDataProtectionBackupInstance_Validate() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -454,12 +454,12 @@ public TestAzDataProtectionBackupInstance_Validate() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -471,7 +471,7 @@ public TestAzDataProtectionBackupInstance_Validate() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateExpanded.cs index 444136515c12..ccc2c3cd3027 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDataProtectionBackupInstance_ValidateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Validate whether adhoc backup will be successful or not")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupInstance_ValidateExpanded : global::System.Management.Automation.PSCmdlet, @@ -46,8 +46,8 @@ public partial class TestAzDataProtectionBackupInstance_ValidateExpanded : globa ReadOnly = false, Description = @"Backup Instance", SerializedName = @"backupInstance", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance BackupInstance { get => ParametersBody.BackupInstance ?? null /* object */; set => ParametersBody.BackupInstance = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance BackupInstance { get => ParametersBody.BackupInstance ?? null /* object */; set => ParametersBody.BackupInstance = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -98,10 +98,10 @@ public partial class TestAzDataProtectionBackupInstance_ValidateExpanded : globa public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ValidateForBackupRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ValidateForBackupRequest(); /// Validate for backup request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -175,24 +175,24 @@ public partial class TestAzDataProtectionBackupInstance_ValidateExpanded : globa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -418,12 +418,12 @@ public TestAzDataProtectionBackupInstance_ValidateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -440,7 +440,7 @@ public TestAzDataProtectionBackupInstance_ValidateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -458,12 +458,12 @@ public TestAzDataProtectionBackupInstance_ValidateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -475,7 +475,7 @@ public TestAzDataProtectionBackupInstance_ValidateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentity.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentity.cs index 30b6226d5373..8ee371ece70f 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentity.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDataProtectionBackupInstance_ValidateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Validate whether adhoc backup will be successful or not")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -95,7 +95,7 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentity : gl public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest _parameter; /// Validate for backup request [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Validate for backup request", ValueFromPipeline = true)] @@ -104,8 +104,8 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentity : gl ReadOnly = false, Description = @"Validate for backup request", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -133,24 +133,24 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentity : gl /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -393,12 +393,12 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentity() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -415,7 +415,7 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -433,12 +433,12 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -450,7 +450,7 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded.cs index 0db3f202875e..0781307d7f8c 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDataProtectionBackupInstance_ValidateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Validate whether adhoc backup will be successful or not")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -46,8 +46,8 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentityExpan ReadOnly = false, Description = @"Backup Instance", SerializedName = @"backupInstance", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance BackupInstance { get => ParametersBody.BackupInstance ?? null /* object */; set => ParametersBody.BackupInstance = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance BackupInstance { get => ParametersBody.BackupInstance ?? null /* object */; set => ParametersBody.BackupInstance = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -106,10 +106,10 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentityExpan public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ValidateForBackupRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ValidateForBackupRequest(); /// Validate for backup request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -137,24 +137,24 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentityExpan /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -400,12 +400,12 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -422,7 +422,7 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -440,12 +440,12 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -457,7 +457,7 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_Check.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_Check.cs index e80950786613..5db14beb65e5 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_Check.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_Check.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDataProtectionBackupVaultNameAvailability_Check", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"API to check for resource name availability")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupVaultNameAvailability_Check : global::System.Management.Automation.PSCmdlet, @@ -88,7 +88,7 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_Check : glo global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest _parameter; /// CheckNameAvailability Request [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "CheckNameAvailability Request", ValueFromPipeline = true)] @@ -97,8 +97,8 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_Check : glo ReadOnly = false, Description = @"CheckNameAvailability Request", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -158,24 +158,24 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_Check : glo /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -347,12 +347,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_Check() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -369,7 +369,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_Check() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Location=Location, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -387,12 +387,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_Check() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -404,7 +404,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_Check() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded.cs index 76e67a88baf1..175c1f209072 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDataProtectionBackupVaultNameAvailability_CheckExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"API to check for resource name availability")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded : global::System.Management.Automation.PSCmdlet, @@ -99,10 +99,10 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckExpand public string Name { get => ParametersBody.Name ?? null; set => ParametersBody.Name = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CheckNameAvailabilityRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CheckNameAvailabilityRequest(); /// CheckNameAvailability Request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -173,24 +173,24 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckExpand /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -362,12 +362,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -384,7 +384,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Location=Location, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -402,12 +402,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -419,7 +419,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity.cs index e4d7366241de..5bb01d2cdaa0 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDataProtectionBackupVaultNameAvailability_CheckViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"API to check for resource name availability")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -82,7 +82,7 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIde global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest _parameter; /// CheckNameAvailability Request [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "CheckNameAvailability Request", ValueFromPipeline = true)] @@ -91,8 +91,8 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIde ReadOnly = false, Description = @"CheckNameAvailability Request", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -120,24 +120,24 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIde /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -330,12 +330,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -352,7 +352,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -370,12 +370,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -387,7 +387,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded.cs index fe65e40e55a0..cb7efc670aeb 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"API to check for resource name availability")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -93,10 +93,10 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIde public string Name { get => ParametersBody.Name ?? null; set => ParametersBody.Name = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.CheckNameAvailabilityRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.CheckNameAvailabilityRequest(); /// CheckNameAvailability Request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -135,24 +135,24 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIde /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -345,12 +345,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded( /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -367,7 +367,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded( if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -385,12 +385,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded( /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -402,7 +402,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded( return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_Check.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_Check.cs index 53073aa95814..8dcea7d82415 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_Check.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_Check.cs @@ -87,7 +87,7 @@ public partial class TestAzDataProtectionFeatureSupport_Check : global::System.M global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase _parameter; /// Base class for Backup Feature support [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Base class for Backup Feature support", ValueFromPipeline = true)] @@ -96,8 +96,8 @@ public partial class TestAzDataProtectionFeatureSupport_Check : global::System.M ReadOnly = false, Description = @"Base class for Backup Feature support", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -143,24 +143,24 @@ public partial class TestAzDataProtectionFeatureSupport_Check : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -332,12 +332,12 @@ public TestAzDataProtectionFeatureSupport_Check() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -354,7 +354,7 @@ public TestAzDataProtectionFeatureSupport_Check() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Location=Location, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -372,12 +372,12 @@ public TestAzDataProtectionFeatureSupport_Check() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -389,7 +389,7 @@ public TestAzDataProtectionFeatureSupport_Check() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase WriteObject((await response).ObjectType); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckExpanded.cs index 1e79df3a339b..a7ce77cd0113 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckExpanded.cs @@ -98,10 +98,10 @@ public partial class TestAzDataProtectionFeatureSupport_CheckExpanded : global:: public string ObjectType { get => ParametersBody.ObjectType ?? null; set => ParametersBody.ObjectType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationRequestBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationRequestBase(); /// Base class for Backup Feature support - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -147,24 +147,24 @@ public partial class TestAzDataProtectionFeatureSupport_CheckExpanded : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -336,12 +336,12 @@ public TestAzDataProtectionFeatureSupport_CheckExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -358,7 +358,7 @@ public TestAzDataProtectionFeatureSupport_CheckExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Location=Location, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -376,12 +376,12 @@ public TestAzDataProtectionFeatureSupport_CheckExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -393,7 +393,7 @@ public TestAzDataProtectionFeatureSupport_CheckExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase WriteObject((await response).ObjectType); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentity.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentity.cs index bf3963d6c11f..966121f8d552 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentity.cs @@ -82,7 +82,7 @@ public partial class TestAzDataProtectionFeatureSupport_CheckViaIdentity : globa global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase _parameter; /// Base class for Backup Feature support [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Base class for Backup Feature support", ValueFromPipeline = true)] @@ -91,8 +91,8 @@ public partial class TestAzDataProtectionFeatureSupport_CheckViaIdentity : globa ReadOnly = false, Description = @"Base class for Backup Feature support", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -120,24 +120,24 @@ public partial class TestAzDataProtectionFeatureSupport_CheckViaIdentity : globa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -325,12 +325,12 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentity() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -347,7 +347,7 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -365,12 +365,12 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -382,7 +382,7 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase WriteObject((await response).ObjectType); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded.cs index 723fda62ea8e..8e55de652a87 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded.cs @@ -93,10 +93,10 @@ public partial class TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded public string ObjectType { get => ParametersBody.ObjectType ?? null; set => ParametersBody.ObjectType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.FeatureValidationRequestBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.FeatureValidationRequestBase(); /// Base class for Backup Feature support - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -124,24 +124,24 @@ public partial class TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -329,12 +329,12 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -351,7 +351,7 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -369,12 +369,12 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -386,7 +386,7 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationResponseBase + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationResponseBase WriteObject((await response).ObjectType); } } diff --git a/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_PatchExpanded.cs b/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_PatchExpanded.cs index 359d2246f2ad..8abd9f984b92 100644 --- a/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_PatchExpanded.cs +++ b/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_PatchExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Patch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDataProtectionBackupVault_PatchExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class UpdateAzDataProtectionBackupVault_PatchExpanded : global::System.Management.Automation.PSCmdlet, @@ -99,10 +99,10 @@ public partial class UpdateAzDataProtectionBackupVault_PatchExpanded : global::S public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PatchResourceRequestInput(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PatchResourceRequestInput(); /// Patch Request content for Microsoft.DataProtection resources - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -166,8 +166,8 @@ public partial class UpdateAzDataProtectionBackupVault_PatchExpanded : global::S ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } /// Backing field for property. private string _vaultName; @@ -188,24 +188,24 @@ public partial class UpdateAzDataProtectionBackupVault_PatchExpanded : global::S /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -431,12 +431,12 @@ public UpdateAzDataProtectionBackupVault_PatchExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -453,7 +453,7 @@ public UpdateAzDataProtectionBackupVault_PatchExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -471,12 +471,12 @@ public UpdateAzDataProtectionBackupVault_PatchExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ public UpdateAzDataProtectionBackupVault_PatchExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_PatchViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_PatchViaIdentityExpanded.cs index 26f2569c7f11..641238ff1724 100644 --- a/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_PatchViaIdentityExpanded.cs +++ b/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_PatchViaIdentityExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Patch=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDataProtectionBackupVault_PatchViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class UpdateAzDataProtectionBackupVault_PatchViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -107,10 +107,10 @@ public partial class UpdateAzDataProtectionBackupVault_PatchViaIdentityExpanded public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.PatchResourceRequestInput(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.PatchResourceRequestInput(); /// Patch Request content for Microsoft.DataProtection resources - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInput ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInput ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } /// /// The instance of the that the remote call will use. @@ -142,32 +142,32 @@ public partial class UpdateAzDataProtectionBackupVault_PatchViaIdentityExpanded ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IPatchResourceRequestInputTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IPatchResourceRequestInputTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -412,12 +412,12 @@ public UpdateAzDataProtectionBackupVault_PatchViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -434,7 +434,7 @@ public UpdateAzDataProtectionBackupVault_PatchViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -452,12 +452,12 @@ public UpdateAzDataProtectionBackupVault_PatchViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a the body result as a from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -469,7 +469,7 @@ public UpdateAzDataProtectionBackupVault_PatchViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/runtime/Extensions.cs b/src/DataProtection/generated/runtime/Extensions.cs index ac42664f8ba9..cc6006173da8 100644 --- a/src/DataProtection/generated/runtime/Extensions.cs +++ b/src/DataProtection/generated/runtime/Extensions.cs @@ -50,7 +50,7 @@ internal static void AddIf(T value, string serializedName, System.Actionthe HttpResponseMessage to fetch a header from /// the header name /// the first header value as a string from an HttpReponseMessage. string.empty if there is no header value matching - internal static string GetFirstHeader(this System.Net.Http.HttpResponseMessage response, string headerName) => response.Headers.FirstOrDefault(each => headerName == each.Key).Value?.FirstOrDefault() ?? string.Empty; + internal static string GetFirstHeader(this System.Net.Http.HttpResponseMessage response, string headerName) => response.Headers.FirstOrDefault(each => string.Equals(headerName, each.Key, System.StringComparison.OrdinalIgnoreCase)).Value?.FirstOrDefault() ?? string.Empty; /// /// Sets the Synchronization Context to null, and returns an IDisposable that when disposed, diff --git a/src/DataProtection/help/Az.DataProtection.md b/src/DataProtection/help/Az.DataProtection.md index ca7a1c881238..7e5a239bebcb 100644 --- a/src/DataProtection/help/Az.DataProtection.md +++ b/src/DataProtection/help/Az.DataProtection.md @@ -23,6 +23,9 @@ Adds or removes schedule tag in an existing backup policy. ### [Edit-AzDataProtectionPolicyTriggerClientObject](Edit-AzDataProtectionPolicyTriggerClientObject.md) Updates Backup schedule of an existing backup policy. +### [Find-AzDataProtectionRestorableTimeRange](Find-AzDataProtectionRestorableTimeRange.md) + + ### [Get-AzDataProtectionBackupInstance](Get-AzDataProtectionBackupInstance.md) Gets a backup instance with name in a backup vault diff --git a/src/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md b/src/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md index c2ed4e4c34de..7a40d5c51ebd 100644 --- a/src/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md +++ b/src/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md @@ -234,7 +234,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md b/src/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md index 695ee7b2e0fc..da651e056478 100644 --- a/src/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md +++ b/src/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md @@ -77,7 +77,7 @@ Life cycles associated with the retention rule. To construct, see NOTES section for LIFECYCLES properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle[] Parameter Sets: AddRetention Aliases: @@ -108,7 +108,7 @@ Backup Policy Object To construct, see NOTES section for POLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy Parameter Sets: (All) Aliases: @@ -141,7 +141,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy ## NOTES diff --git a/src/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md b/src/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md index e82bd1fed77f..12d131d09e67 100644 --- a/src/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md +++ b/src/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md @@ -59,7 +59,7 @@ Criterias to be associated with the schedule tag. To construct, see NOTES section for CRITERIA properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria[] Parameter Sets: updateTag Aliases: @@ -90,7 +90,7 @@ Backup Policy Object. To construct, see NOTES section for POLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy Parameter Sets: (All) Aliases: @@ -123,7 +123,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy ## NOTES diff --git a/src/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md b/src/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md index 878665c609af..157e1139b82e 100644 --- a/src/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md +++ b/src/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md @@ -41,7 +41,7 @@ Backup Policy object. To construct, see NOTES section for POLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy Parameter Sets: (All) Aliases: @@ -74,7 +74,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy ## NOTES diff --git a/src/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md b/src/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md new file mode 100644 index 000000000000..eecfbb8e952b --- /dev/null +++ b/src/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md @@ -0,0 +1,211 @@ +--- +external help file: +Module Name: Az.DataProtection +online version: https://docs.microsoft.com/powershell/module/az.dataprotection/find-azdataprotectionrestorabletimerange +schema: 2.0.0 +--- + +# Find-AzDataProtectionRestorableTimeRange + +## SYNOPSIS +Find restorable time ranges + +## SYNTAX + +``` +Find-AzDataProtectionRestorableTimeRange -BackupInstanceName -ResourceGroupName + -VaultName -EndTime -SourceDataStoreType -StartTime + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Find restorable time ranges + +## EXAMPLES + +### Example 1: Fetch valid restorable time ranges for a BackupInstance +```powershell +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instances = Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "subscriptionId" -DatasourceType AzureBlob -ResourceGroup "rgName" -Vault "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instances[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $pointInTimeRange.RestorableTimeRange | fl + +EndTime : 2021-04-24T08:57:36.4149422Z +ObjectType : RestorableTimeRange +StartTime : 2021-03-25T14:27:31.0000000Z +``` + +Set $startTime and $endTime. +Fetch the backup instance. +Fetch valid time ranges for Backup Instance $instance[0]. +Dispaly RestorableTimeRange, note that this can be multiple dicrete ranges. + +## PARAMETERS + +### -BackupInstanceName +. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EndTime +End time for the List Restore Ranges request + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group where the backup vault is present. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourceDataStoreType +Gets or sets the type of the source data store. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StartTime +Start time for the List Restore Ranges request + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription Id. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VaultName +The name of the backup vault. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupFindRestorableTimeRangesResponseResource + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/DataProtection/help/Get-AzDataProtectionBackupInstance.md b/src/DataProtection/help/Get-AzDataProtectionBackupInstance.md index 7b0476133803..c6020514d232 100644 --- a/src/DataProtection/help/Get-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/help/Get-AzDataProtectionBackupInstance.md @@ -161,7 +161,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionBackupPolicy.md b/src/DataProtection/help/Get-AzDataProtectionBackupPolicy.md index 0e566dadd8b2..16a9d9faf3ad 100644 --- a/src/DataProtection/help/Get-AzDataProtectionBackupPolicy.md +++ b/src/DataProtection/help/Get-AzDataProtectionBackupPolicy.md @@ -160,7 +160,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionBackupVault.md b/src/DataProtection/help/Get-AzDataProtectionBackupVault.md index b6f4d81a95bc..ef28f53ae586 100644 --- a/src/DataProtection/help/Get-AzDataProtectionBackupVault.md +++ b/src/DataProtection/help/Get-AzDataProtectionBackupVault.md @@ -160,7 +160,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource ### System.Management.Automation.PSObject diff --git a/src/DataProtection/help/Get-AzDataProtectionJob.md b/src/DataProtection/help/Get-AzDataProtectionJob.md index 015078476103..3c313a94faf6 100644 --- a/src/DataProtection/help/Get-AzDataProtectionJob.md +++ b/src/DataProtection/help/Get-AzDataProtectionJob.md @@ -166,7 +166,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupJobResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupJobResource ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md b/src/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md index d004e6a3bf1b..61dc18c24930 100644 --- a/src/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md +++ b/src/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md @@ -57,7 +57,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md b/src/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md index baaa28414b38..f78614a37f19 100644 --- a/src/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md +++ b/src/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md @@ -212,7 +212,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource ### System.Management.Automation.PSObject diff --git a/src/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md b/src/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md index 5e1048165239..825852b99f76 100644 --- a/src/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md @@ -111,7 +111,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md b/src/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md index c6f3e3396fb8..c5bd6a3d325f 100644 --- a/src/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md +++ b/src/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md @@ -12,10 +12,27 @@ Initializes Restore Request object for triggering restore on a protected backup ## SYNTAX +### AlternateLocationFullRecovery (Default) ``` -Initialize-AzDataProtectionRestoreRequest -DatasourceType -RecoveryPoint - -RestoreLocation -RestoreType -SourceDataStore - [-TargetResourceId ] [] +Initialize-AzDataProtectionRestoreRequest -DatasourceType -RestoreLocation + -RestoreType -SourceDataStore -TargetResourceId + [-PointInTime ] [-RecoveryPoint ] [] +``` + +### OriginalLocationFullRecovery +``` +Initialize-AzDataProtectionRestoreRequest -BackupInstance + -DatasourceType -RestoreLocation -RestoreType + -SourceDataStore [-PointInTime ] [-RecoveryPoint ] [] +``` + +### OriginalLocationILR +``` +Initialize-AzDataProtectionRestoreRequest -BackupInstance + -DatasourceType -ItemLevelRecovery -RestoreLocation + -RestoreType -SourceDataStore [-ContainersList ] + [-FromPrefixPattern ] [-PointInTime ] [-RecoveryPoint ] + [-ToPrefixPattern ] [] ``` ## DESCRIPTION @@ -38,8 +55,101 @@ AzureBackupRecoveryPointBasedRestoreRequest RestoreTargetInfo FailIfEx This command initialized a restore request object which can be used to trigger restore. +### Example 2: Get restore request object for Protected Azure Blob Backup instance +```powershell +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instance[0] -PointInTime (Get-Date -Date $pointInTimeRange.RestorableTimeRange.EndTime) +PS C:\> $restoreRequest + +ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime +---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- +AzureBackupRecoveryTimeBasedRestoreRequest restoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-24T13:32:41.7018481Z + +``` + +This command initialized a restore request object which can be used to trigger restore for Blobs. + +### Example 3: Get restore request object for Item Level recovery for containers under protected AzureBlob Backup instance +```powershell +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -ContainersList "containerName1","containerName2" +PS C:\> $restoreRequest + +ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime +---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- +AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z + +``` + +This command initialized a restore request object which can be used to trigger Item Level Recovery at container level for Blobs. + +### Example 4: Get restore request object for Item Level recovery for containers/prefixMatch under protected AzureBlob Backup instance +```powershell +PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -FromPrefixPattern "container1/aaa","container1/ccc", "container2/aab", "container3" -ToPrefixPattern "container1/bbb","container1/ddd", "container2/abc", "container3-0" +PS C:\> $restoreRequest + +ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime +---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- +AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z + +``` + +This command initialized a restore request object which can be used to trigger Item Level Recovery at blobs level based on name prefixes under Blob containers. + +The above restoreRequest restore the following containers/blobs: + +FromPrefix ToPrefix +"container1/aaa" "container1/bbb" (restores all blobs matched in this Prefix range) +"container1/ccc" "container1/ddd" +"container2/aab" "container2/abc" +"container3" "container3-0" (restores whole container3) + +Note: The ranges shouldn't overlap with each other. +Reference: https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata + ## PARAMETERS +### -BackupInstance +Backup Instance object to trigger original localtion restore. +To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.BackupInstanceResource +Parameter Sets: OriginalLocationFullRecovery, OriginalLocationILR +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContainersList +Container names for Item Level Recovery. + +```yaml +Type: System.String[] +Parameter Sets: OriginalLocationILR +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DatasourceType Datasource Type @@ -55,6 +165,51 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FromPrefixPattern +Minimum matching value for Item Level Recovery. + +```yaml +Type: System.String[] +Parameter Sets: OriginalLocationILR +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ItemLevelRecovery +Switch Parameter to enable item level recovery. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: OriginalLocationILR +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PointInTime +Point In Time for restore. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RecoveryPoint Id of the recovery point to be restored. @@ -63,7 +218,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -120,7 +275,22 @@ Target resource Id to which backup data will be restored. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: AlternateLocationFullRecovery +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ToPrefixPattern +Maximum matching value for Item Level Recovery. + +```yaml +Type: System.String[] +Parameter Sets: OriginalLocationILR Aliases: Required: False @@ -137,11 +307,43 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest ## NOTES ALIASES +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. + + +BACKUPINSTANCE : Backup Instance object to trigger original localtion restore. + - `[Property ]`: BackupInstanceResource properties + - `DataSourceInfo `: Gets or sets the data source information. + - `ResourceId `: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault. + - `[ObjectType ]`: Type of Datasource object, used to initialize the right inherited type + - `[ResourceLocation ]`: Location of datasource. + - `[ResourceName ]`: Unique identifier of the resource in the context of parent. + - `[ResourceType ]`: Resource Type of Datasource. + - `[ResourceUri ]`: Uri of the resource. + - `[Type ]`: DatasourceType of the resource. + - `FriendlyName `: Gets or sets the Backup Instance friendly name. + - `ObjectType `: + - `PolicyInfo `: Gets or sets the policy information. + - `PolicyId `: + - `[PolicyParameter ]`: Policy parameters for the backup instance + - `[DataStoreParametersList ]`: Gets or sets the DataStore Parameters + - `DataStoreType `: type of datastore; Operational/Vault/Archive + - `ObjectType `: Type of the specific object - used for deserializing + - `[DataSourceSetInfo ]`: Gets or sets the data source set information. + - `ResourceId `: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault. + - `[DatasourceType ]`: DatasourceType of the resource. + - `[ObjectType ]`: Type of Datasource object, used to initialize the right inherited type + - `[ResourceLocation ]`: Location of datasource. + - `[ResourceName ]`: Unique identifier of the resource in the context of parent. + - `[ResourceType ]`: Resource Type of Datasource. + - `[ResourceUri ]`: Uri of the resource. + ## RELATED LINKS diff --git a/src/DataProtection/help/New-AzDataProtectionBackupInstance.md b/src/DataProtection/help/New-AzDataProtectionBackupInstance.md index 6791c6e86a5a..8f6325bf5edd 100644 --- a/src/DataProtection/help/New-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/help/New-AzDataProtectionBackupInstance.md @@ -64,7 +64,7 @@ Backup instance request object which will be used to configure backup To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/help/New-AzDataProtectionBackupPolicy.md b/src/DataProtection/help/New-AzDataProtectionBackupPolicy.md index 859b7db512b3..370d05db1364 100644 --- a/src/DataProtection/help/New-AzDataProtectionBackupPolicy.md +++ b/src/DataProtection/help/New-AzDataProtectionBackupPolicy.md @@ -72,7 +72,7 @@ Policy Request Object To construct, see NOTES section for POLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupPolicy Parameter Sets: (All) Aliases: @@ -166,7 +166,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource ## NOTES diff --git a/src/DataProtection/help/New-AzDataProtectionBackupVault.md b/src/DataProtection/help/New-AzDataProtectionBackupVault.md index e4a18082d7c5..a4663bdd3f52 100644 --- a/src/DataProtection/help/New-AzDataProtectionBackupVault.md +++ b/src/DataProtection/help/New-AzDataProtectionBackupVault.md @@ -150,7 +150,7 @@ Use New-AzDataProtectionBackupVaultStorageSetting Cmdlet to Create. To construct, see NOTES section for STORAGESETTING properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[] Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md b/src/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md index 275726b188ce..46ebbe5ccf7c 100644 --- a/src/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md +++ b/src/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md @@ -157,7 +157,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IScheduleBasedBackupCriteria +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IScheduleBasedBackupCriteria ## NOTES diff --git a/src/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md b/src/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md index 3570ece04cf0..c9ab230fa3e3 100644 --- a/src/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md +++ b/src/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md @@ -133,7 +133,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ISourceLifeCycle +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ISourceLifeCycle ## NOTES diff --git a/src/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md b/src/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md index 077e381ca761..9c01abe70b8b 100644 --- a/src/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md +++ b/src/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md @@ -126,7 +126,7 @@ Azure backup restore request To construct, see NOTES section for PARAMETER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest Parameter Sets: Trigger Aliases: @@ -263,11 +263,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRestoreRequest +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRestoreRequest ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md b/src/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md index 48570454e72c..599804ddbb87 100644 --- a/src/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md +++ b/src/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md @@ -197,7 +197,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/help/Update-AzDataProtectionBackupVault.md b/src/DataProtection/help/Update-AzDataProtectionBackupVault.md index 4bf700b47a7e..0568bb53762f 100644 --- a/src/DataProtection/help/Update-AzDataProtectionBackupVault.md +++ b/src/DataProtection/help/Update-AzDataProtectionBackupVault.md @@ -223,7 +223,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource ## NOTES diff --git a/src/DataProtection/internal/Get-AzDataProtectionBackupVaultResource.ps1 b/src/DataProtection/internal/Get-AzDataProtectionBackupVaultResource.ps1 index 55060c613167..e2a310b27509 100644 --- a/src/DataProtection/internal/Get-AzDataProtectionBackupVaultResource.ps1 +++ b/src/DataProtection/internal/Get-AzDataProtectionBackupVaultResource.ps1 @@ -30,7 +30,7 @@ PS C:\> {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES @@ -52,7 +52,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvaultresource #> function Get-AzDataProtectionBackupVaultResource { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get')] diff --git a/src/DataProtection/internal/Get-AzDataProtectionOperation.ps1 b/src/DataProtection/internal/Get-AzDataProtectionOperation.ps1 index 5d635dfab19b..1eabcfde0106 100644 --- a/src/DataProtection/internal/Get-AzDataProtectionOperation.ps1 +++ b/src/DataProtection/internal/Get-AzDataProtectionOperation.ps1 @@ -28,12 +28,12 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi .Link https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperation #> function Get-AzDataProtectionOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] diff --git a/src/DataProtection/internal/Get-AzDataProtectionRecoveryPointList.ps1 b/src/DataProtection/internal/Get-AzDataProtectionRecoveryPointList.ps1 index daf57063a0d8..0b28c4245b23 100644 --- a/src/DataProtection/internal/Get-AzDataProtectionRecoveryPointList.ps1 +++ b/src/DataProtection/internal/Get-AzDataProtectionRecoveryPointList.ps1 @@ -30,7 +30,7 @@ PS C:\> {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource .Notes COMPLEX PARAMETER PROPERTIES @@ -52,7 +52,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypointlist #> function Get-AzDataProtectionRecoveryPointList { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/DataProtection/internal/New-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/internal/New-AzDataProtectionBackupInstance.ps1 index 326c7360c45a..d3ff495006da 100644 --- a/src/DataProtection/internal/New-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/internal/New-AzDataProtectionBackupInstance.ps1 @@ -15,9 +15,9 @@ <# .Synopsis - +Create or update a backup instance in a backup vault .Description - +Create or update a backup instance in a backup vault .Example PS C:\> $sub = "xxxx-xxx-xx" PS C:\> $DiskId = "/subscriptions/{subscription}/resourceGroups/{resourcegroup}/providers/Microsoft.Compute/disks/{diskname}" @@ -32,9 +32,9 @@ Name Type sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource .Notes COMPLEX PARAMETER PROPERTIES @@ -96,7 +96,7 @@ PROPERTY : BackupInstanceResource properties https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupinstance #> function New-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -127,14 +127,14 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource] # BackupInstance Resource # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance] # BackupInstanceResource properties # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, diff --git a/src/DataProtection/internal/New-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/internal/New-AzDataProtectionBackupPolicy.ps1 index be250699f755..79c83f22db3a 100644 --- a/src/DataProtection/internal/New-AzDataProtectionBackupPolicy.ps1 +++ b/src/DataProtection/internal/New-AzDataProtectionBackupPolicy.ps1 @@ -27,9 +27,9 @@ Name Type MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -42,7 +42,7 @@ PARAMETER : BaseBackupPolicy resource https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy #> function New-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -73,7 +73,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource] # BaseBackupPolicy resource # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, diff --git a/src/DataProtection/internal/New-AzDataProtectionBackupVault.ps1 b/src/DataProtection/internal/New-AzDataProtectionBackupVault.ps1 index 4d4399114785..b6d41aa1fdd4 100644 --- a/src/DataProtection/internal/New-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/internal/New-AzDataProtectionBackupVault.ps1 @@ -28,23 +28,23 @@ ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type westus MyVault Microsoft.DataProtection/backupVaults .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. PARAMETER : Backup Vault Resource + StorageSetting : Storage Settings + [DatastoreType ]: Gets or sets the type of the datastore. + [Type ]: Gets or sets the type. [ETag ]: Optional ETag. [IdentityType ]: The identityType which can be either SystemAssigned or None [Location ]: Resource location. [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. - [StorageSetting ]: Storage Settings - [DatastoreType ]: Gets or sets the type of the datastore. - [Type ]: Gets or sets the type. STORAGESETTING : Storage Settings [DatastoreType ]: Gets or sets the type of the datastore. @@ -53,8 +53,8 @@ STORAGESETTING : Storage Settings https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupvault #> function New-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource])] +[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] @@ -77,11 +77,18 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource] # Backup Vault Resource # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[]] + # Storage Settings + # To construct, see NOTES section for STORAGESETTING properties and create a hash table. + ${StorageSetting}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] @@ -102,14 +109,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[]] - # Storage Settings - # To construct, see NOTES section for STORAGESETTING properties and create a hash table. - ${StorageSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DataProtection/internal/ProxyCmdletDefinitions.ps1 b/src/DataProtection/internal/ProxyCmdletDefinitions.ps1 index 77cc6a5f2225..36af68348e16 100644 --- a/src/DataProtection/internal/ProxyCmdletDefinitions.ps1 +++ b/src/DataProtection/internal/ProxyCmdletDefinitions.ps1 @@ -30,7 +30,7 @@ PS C:\> {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES @@ -52,7 +52,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvaultresource #> function Get-AzDataProtectionBackupVaultResource { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get')] @@ -196,12 +196,12 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi .Link https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperation #> function Get-AzDataProtectionOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IClientDiscoveryValueForSingleApi])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IClientDiscoveryValueForSingleApi])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] @@ -319,7 +319,7 @@ PS C:\> {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource .Notes COMPLEX PARAMETER PROPERTIES @@ -341,7 +341,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypointlist #> function Get-AzDataProtectionRecoveryPointList { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPointResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPointResource])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -492,9 +492,9 @@ end { <# .Synopsis - +Create or update a backup instance in a backup vault .Description - +Create or update a backup instance in a backup vault .Example PS C:\> $sub = "xxxx-xxx-xx" PS C:\> $DiskId = "/subscriptions/{subscription}/resourceGroups/{resourcegroup}/providers/Microsoft.Compute/disks/{diskname}" @@ -509,9 +509,9 @@ Name Type sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource .Notes COMPLEX PARAMETER PROPERTIES @@ -573,7 +573,7 @@ PROPERTY : BackupInstanceResource properties https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupinstance #> function New-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -604,14 +604,14 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstanceResource] # BackupInstance Resource # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance] # BackupInstanceResource properties # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, @@ -744,9 +744,9 @@ Name Type MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -759,7 +759,7 @@ PARAMETER : BaseBackupPolicy resource https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy #> function New-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -790,7 +790,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicyResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicyResource] # BaseBackupPolicy resource # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -924,23 +924,23 @@ ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type westus MyVault Microsoft.DataProtection/backupVaults .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. PARAMETER : Backup Vault Resource + StorageSetting : Storage Settings + [DatastoreType ]: Gets or sets the type of the datastore. + [Type ]: Gets or sets the type. [ETag ]: Optional ETag. [IdentityType ]: The identityType which can be either SystemAssigned or None [Location ]: Resource location. [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. - [StorageSetting ]: Storage Settings - [DatastoreType ]: Gets or sets the type of the datastore. - [Type ]: Gets or sets the type. STORAGESETTING : Storage Settings [DatastoreType ]: Gets or sets the type of the datastore. @@ -949,8 +949,8 @@ STORAGESETTING : Storage Settings https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupvault #> function New-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource])] +[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] @@ -973,11 +973,18 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupVaultResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupVaultResource] # Backup Vault Resource # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IStorageSetting[]] + # Storage Settings + # To construct, see NOTES section for STORAGESETTING properties and create a hash table. + ${StorageSetting}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] @@ -998,14 +1005,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IStorageSetting[]] - # Storage Settings - # To construct, see NOTES section for STORAGESETTING properties and create a hash table. - ${StorageSetting}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IDppTrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IDppTrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -1139,11 +1139,11 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -1171,7 +1171,7 @@ PARAMETER : Validate restore request object https://docs.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancerestore #> function Test-AzDataProtectionBackupInstanceRestore { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] @@ -1214,7 +1214,7 @@ param( [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject] # Validate restore request object # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -1379,11 +1379,11 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -1458,7 +1458,7 @@ PARAMETER : Validate for backup request https://docs.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstance #> function Test-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] @@ -1494,7 +1494,7 @@ param( [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest] # Validate for backup request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -1502,7 +1502,7 @@ param( [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance] # Backup Instance # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ${BackupInstance}, @@ -1638,11 +1638,11 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult .Notes COMPLEX PARAMETER PROPERTIES @@ -1668,7 +1668,7 @@ PARAMETER : CheckNameAvailability Request https://docs.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupvaultnameavailability #> function Test-AzDataProtectionBackupVaultNameAvailability { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult])] [CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Check', Mandatory)] @@ -1704,7 +1704,7 @@ param( [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest] # CheckNameAvailability Request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -1842,7 +1842,7 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs @@ -1900,7 +1900,7 @@ param( [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase] # Base class for Backup Feature support # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, diff --git a/src/DataProtection/internal/Test-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/internal/Test-AzDataProtectionBackupInstance.ps1 index fd6cbe43fea7..8dce1e4e702c 100644 --- a/src/DataProtection/internal/Test-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/internal/Test-AzDataProtectionBackupInstance.ps1 @@ -28,11 +28,11 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -107,7 +107,7 @@ PARAMETER : Validate for backup request https://docs.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstance #> function Test-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] @@ -143,7 +143,7 @@ param( [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateForBackupRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateForBackupRequest] # Validate for backup request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -151,7 +151,7 @@ param( [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupInstance] # Backup Instance # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ${BackupInstance}, diff --git a/src/DataProtection/internal/Test-AzDataProtectionBackupInstanceRestore.ps1 b/src/DataProtection/internal/Test-AzDataProtectionBackupInstanceRestore.ps1 index 48a7bb48ea5b..d7c73e4c809f 100644 --- a/src/DataProtection/internal/Test-AzDataProtectionBackupInstanceRestore.ps1 +++ b/src/DataProtection/internal/Test-AzDataProtectionBackupInstanceRestore.ps1 @@ -28,11 +28,11 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -60,7 +60,7 @@ PARAMETER : Validate restore request object https://docs.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancerestore #> function Test-AzDataProtectionBackupInstanceRestore { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] @@ -103,7 +103,7 @@ param( [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IValidateRestoreRequestObject] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IValidateRestoreRequestObject] # Validate restore request object # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, diff --git a/src/DataProtection/internal/Test-AzDataProtectionBackupVaultNameAvailability.ps1 b/src/DataProtection/internal/Test-AzDataProtectionBackupVaultNameAvailability.ps1 index 6be50eac3f9e..964ac69f53d1 100644 --- a/src/DataProtection/internal/Test-AzDataProtectionBackupVaultNameAvailability.ps1 +++ b/src/DataProtection/internal/Test-AzDataProtectionBackupVaultNameAvailability.ps1 @@ -28,11 +28,11 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult .Notes COMPLEX PARAMETER PROPERTIES @@ -58,7 +58,7 @@ PARAMETER : CheckNameAvailability Request https://docs.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupvaultnameavailability #> function Test-AzDataProtectionBackupVaultNameAvailability { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityResult])] [CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Check', Mandatory)] @@ -94,7 +94,7 @@ param( [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ICheckNameAvailabilityRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ICheckNameAvailabilityRequest] # CheckNameAvailability Request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, diff --git a/src/DataProtection/internal/Test-AzDataProtectionFeatureSupport.ps1 b/src/DataProtection/internal/Test-AzDataProtectionFeatureSupport.ps1 index 8138bee38181..79e4361ae5c9 100644 --- a/src/DataProtection/internal/Test-AzDataProtectionFeatureSupport.ps1 +++ b/src/DataProtection/internal/Test-AzDataProtectionFeatureSupport.ps1 @@ -28,7 +28,7 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs @@ -86,7 +86,7 @@ param( [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IFeatureValidationRequestBase] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IFeatureValidationRequestBase] # Base class for Backup Feature support # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, diff --git a/src/DataProtection/readme.md b/src/DataProtection/readme.md index 38c8480745f1..849ef98d6d9a 100644 --- a/src/DataProtection/readme.md +++ b/src/DataProtection/readme.md @@ -36,7 +36,7 @@ This file contains the configuration for generating My API from the OpenAPI spec # it's the same options as command line options, just drop the double-dash! require: - $(this-folder)/../readme.azure.noprofile.md -input-file: https://github.com/Azure/azure-rest-api-specs/blob/26128b7117bb4d2df4937bed3e366b7841fe5aed/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-02-01-preview/dataprotection.json +input-file: https://github.com/Azure/azure-rest-api-specs/blob/cc2f99be5f9e0ff3ae6fdba3069df5a138a3622b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json title: DataProtection directive: - from: swagger-document @@ -94,7 +94,20 @@ directive: hide: true - where: verb: Invoke + variant: ^Post$|^PostViaIdentity$|^PostViaIdentityExpanded$ remove: true + - where: + verb: Invoke + subject: FindRestorableTimeRange + parameter-name: BackupInstance + set: + parameter-name: BackupInstanceName + - where: + verb: Invoke + subject: FindRestorableTimeRange + set: + verb: Find + subject: RestorableTimeRange - where: verb: Test hide: true @@ -112,20 +125,21 @@ directive: - InnerError - BackupInstance - RestoreTargetInfo + - ItemLevelRestoreTargetInfo - PolicyParameters - SystemData - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBaseBackupPolicy Property'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBaseBackupPolicy Property'); - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.ITriggerContext Trigger'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.ITriggerContext Trigger'); - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IBackupParameters BackupParameter'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IBackupParameters BackupParameter'); - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210201Preview.IAzureBackupRecoveryPoint Property'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202101.IAzureBackupRecoveryPoint Property'); ``` ## Alternate settings diff --git a/src/DataProtection/run-module.ps1 b/src/DataProtection/run-module.ps1 index b46e77fd259c..bb80ea2e9de8 100644 --- a/src/DataProtection/run-module.ps1 +++ b/src/DataProtection/run-module.ps1 @@ -24,6 +24,8 @@ if(-not $Isolated) { $isAzure = $true if($isAzure) { . (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts + # Load the latest version of Az.Accounts installed + Import-Module -Name Az.Accounts -RequiredVersion (Get-Module -Name Az.Accounts -ListAvailable | Sort-Object -Property Version -Descending)[0].Version } $localModulesPath = Join-Path $PSScriptRoot 'generated\modules' diff --git a/src/DataProtection/test-module.ps1 b/src/DataProtection/test-module.ps1 index 99776b21bd50..020d07ec3cc5 100644 --- a/src/DataProtection/test-module.ps1 +++ b/src/DataProtection/test-module.ps1 @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- -param([switch]$Isolated, [switch]$Live, [switch]$Record, [switch]$Playback) +param([switch]$Isolated, [switch]$Live, [switch]$Record, [switch]$Playback, [switch]$RegenerateSupportModule) $ErrorActionPreference = 'Stop' if(-not $Isolated) { @@ -24,10 +24,12 @@ if(-not $Isolated) { $ProgressPreference = 'SilentlyContinue' $baseName = $PSScriptRoot.BaseName $requireResourceModule = (($baseName -ne "Resources") -and ($Record.IsPresent -or $Live.IsPresent)) -. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts:$false -Pester -Resources:$requireResourceModule +. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts:$false -Pester -Resources:$requireResourceModule -RegenerateSupportModule:$RegenerateSupportModule . ("$PSScriptRoot\test\utils.ps1") if ($requireResourceModule) { + # Load the latest Az.Accounts installed + Import-Module -Name Az.Accounts -RequiredVersion (Get-Module -Name Az.Accounts -ListAvailable | Sort-Object -Property Version -Descending)[0].Version $resourceModulePSD = Get-Item -Path (Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psd1') Import-Module -Name $resourceModulePSD.FullName } diff --git a/src/DataProtection/test/Backup-AzDataProtectionBackupInstanceAdhoc.Recording.json b/src/DataProtection/test/Backup-AzDataProtectionBackupInstanceAdhoc.Recording.json index ea03a4fbd28c..7669d0604f54 100644 --- a/src/DataProtection/test/Backup-AzDataProtectionBackupInstanceAdhoc.Recording.json +++ b/src/DataProtection/test/Backup-AzDataProtectionBackupInstanceAdhoc.Recording.json @@ -1,8 +1,8 @@ { - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-02-01-preview+1": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -41,10 +41,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166/backup?api-version=2021-02-01-preview+2": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166/backup?api-version=2021-01-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166/backup?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166/backup?api-version=2021-01-01", "Content": "{\r\n \"backupRuleOptions\": {\r\n \"triggerOption\": {\r\n \"retentionTagOverride\": \"Default\"\r\n },\r\n \"ruleName\": \"BackupHourly\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -59,9 +59,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-02-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-01-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-02-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -79,10 +79,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-02-01-preview+3": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-01-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -121,10 +121,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-02-01-preview+4": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-01-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -145,7 +145,7 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-02-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzczN2E2NTIyLWJjNDMtNGZlMi1iYjVmLWFkNjAyYjFkMDgxZg==?api-version=2021-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -165,10 +165,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+5": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -207,10 +207,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+6": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -249,10 +249,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+7": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -291,10 +291,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+8": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -333,10 +333,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+9": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -375,10 +375,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+10": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -417,10 +417,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+11": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -459,10 +459,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+12": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -501,10 +501,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+13": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -543,10 +543,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+14": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -585,10 +585,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+15": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -627,10 +627,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+16": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -669,10 +669,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+17": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -711,10 +711,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+18": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -753,10 +753,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+19": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+19": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -795,10 +795,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+20": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -837,10 +837,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+21": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+21": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -879,10 +879,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+22": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+22": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -921,10 +921,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+23": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+23": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -963,10 +963,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+24": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+24": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1005,10 +1005,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+25": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+25": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1047,10 +1047,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+26": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+26": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1089,10 +1089,10 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview+27": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01+27": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5730c038-56b2-498c-b82d-49af36b8a851?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DataProtection/test/DiskBackupScenario.Recording.json b/src/DataProtection/test/DiskBackupScenario.Recording.json index 2c257f69ff6b..c2f488e5b65c 100644 --- a/src/DataProtection/test/DiskBackupScenario.Recording.json +++ b/src/DataProtection/test/DiskBackupScenario.Recording.json @@ -1,8 +1,8 @@ { - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2021-02-01-preview+1": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2021-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -41,10 +41,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-02-01-preview+2": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21?api-version=2021-02-01-preview+3": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21?api-version=2021-01-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -125,10 +125,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21/backup?api-version=2021-02-01-preview+4": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21/backup?api-version=2021-01-01+4": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21/backup?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21/backup?api-version=2021-01-01", "Content": "{\r\n \"backupRuleOptions\": {\r\n \"triggerOption\": {\r\n \"retentionTagOverride\": \"Default\"\r\n },\r\n \"ruleName\": \"BackupHourly\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -143,9 +143,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-02-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-01-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-02-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -163,10 +163,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-02-01-preview+5": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-01-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -205,10 +205,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-02-01-preview+6": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-01-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -229,7 +229,7 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-02-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzYxYWI4NjMzLWU5NmQtNGVmMy1hNjMyLWFkMjg0ZWI5YmY5Mg==?api-version=2021-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -249,10 +249,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+7": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -291,10 +291,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+8": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -333,10 +333,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+9": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -375,10 +375,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+10": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -417,10 +417,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+11": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -459,10 +459,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+12": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -501,10 +501,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+13": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -543,10 +543,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+14": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -585,10 +585,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+15": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -627,10 +627,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+16": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -669,10 +669,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+17": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -711,10 +711,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+18": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -753,10 +753,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+19": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+19": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -795,10 +795,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+20": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -837,10 +837,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+21": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+21": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -879,10 +879,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+22": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+22": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -921,10 +921,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+23": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+23": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -963,10 +963,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+24": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+24": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1005,10 +1005,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+25": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+25": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1047,10 +1047,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+26": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+26": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1089,10 +1089,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+27": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+27": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1131,10 +1131,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+28": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+28": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1173,10 +1173,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+29": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+29": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1215,10 +1215,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+30": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+30": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1257,10 +1257,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+31": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+31": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1299,10 +1299,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+32": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+32": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1341,10 +1341,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+33": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+33": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1383,10 +1383,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview+34": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01+34": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/61d55f77-6cc4-4b83-8415-d3cd2c7dca9d?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1425,10 +1425,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21/recoveryPoints?api-version=2021-02-01-preview+35": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21/recoveryPoints?api-version=2021-01-01+35": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21/recoveryPoints?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21/recoveryPoints?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1467,10 +1467,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21/restore?api-version=2021-02-01-preview+36": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21/restore?api-version=2021-01-01+36": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21/restore?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-27b78e6b-b09b-4c4b-9af4-fd4839d72a21/restore?api-version=2021-01-01", "Content": "{\r\n \"restoreTargetInfo\": {\r\n \"objectType\": \"RestoreTargetInfo\",\r\n \"recoveryOption\": \"FailIfExists\",\r\n \"restoreLocation\": \"centraluseuap\",\r\n \"datasourceInfo\": {\r\n \"datasourceType\": \"Microsoft.Compute/disks\",\r\n \"objectType\": \"Datasource\",\r\n \"resourceID\": \"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvgxrh5mld6\",\r\n \"resourceLocation\": \"centraluseuap\",\r\n \"resourceName\": \"sarathdisk2-restoredvgxrh5mld6\",\r\n \"resourceType\": \"Microsoft.Compute/disks\",\r\n \"resourceUri\": \"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvgxrh5mld6\"\r\n }\r\n },\r\n \"objectType\": \"AzureBackupRecoveryPointBasedRestoreRequest\",\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"recoveryPointId\": \"3e363f1f79524d94bbad94666d348c52\"\r\n}", "isContentBase64": false, "Headers": { @@ -1485,9 +1485,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-02-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-01-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-02-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -1505,10 +1505,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-02-01-preview+37": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-01-01+37": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1547,10 +1547,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-02-01-preview+38": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-01-01+38": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1571,7 +1571,7 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-02-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzMyYTBlOThmLTRmNzktNDAzZi04NGQ5LTUyNTlhMDllNTM5Mw==?api-version=2021-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -1591,10 +1591,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+39": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+39": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1633,10 +1633,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+40": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+40": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1675,10 +1675,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+41": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+41": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1717,10 +1717,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+42": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+42": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1759,10 +1759,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+43": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+43": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1801,10 +1801,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+44": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+44": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1843,10 +1843,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+45": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+45": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1885,10 +1885,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+46": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+46": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1927,10 +1927,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+47": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+47": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -1969,10 +1969,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+48": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+48": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2011,10 +2011,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+49": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+49": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2053,10 +2053,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+50": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+50": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2095,10 +2095,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+51": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+51": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2137,10 +2137,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+52": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+52": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2179,10 +2179,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+53": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+53": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2221,10 +2221,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+54": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+54": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2263,10 +2263,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+55": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+55": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2305,10 +2305,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+56": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+56": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2347,10 +2347,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+57": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+57": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2389,10 +2389,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+58": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+58": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2431,10 +2431,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+59": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+59": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2473,10 +2473,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+60": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+60": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2515,10 +2515,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+61": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+61": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2557,10 +2557,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+62": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+62": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2599,10 +2599,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+63": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+63": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2641,10 +2641,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+64": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+64": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2683,10 +2683,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+65": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+65": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2725,10 +2725,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+66": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+66": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2767,10 +2767,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+67": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+67": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2809,10 +2809,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+68": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+68": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2851,10 +2851,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+69": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+69": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2893,10 +2893,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+70": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+70": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2935,10 +2935,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview+71": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01+71": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/5110b4bd-02de-43cb-91e5-7b8344c95595?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -2977,10 +2977,10 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$DELETE+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/newdiskpolicy-vgxrh5mld6?api-version=2021-02-01-preview+72": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$DELETE+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/newdiskpolicy-vgxrh5mld6?api-version=2021-01-01+72": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/newdiskpolicy-vgxrh5mld6?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/newdiskpolicy-vgxrh5mld6?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Recording.json b/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Recording.json new file mode 100644 index 000000000000..d354557fd732 --- /dev/null +++ b/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Recording.json @@ -0,0 +1,81 @@ +{ + "Find-AzDataProtectionRestorableTimeRange+[NoContext]+PostExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances?api-version=2021-01-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "764edb35-c661-43ca-b0a7-cc98459bb70b" ], + "CommandName": [ "Get-AzDataProtectionBackupInstance" ], + "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Microsoft-IIS/10.0" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "1ff9b844-8612-4a0e-85e3-09f106ad9b8b" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104229Z:1ff9b844-8612-4a0e-85e3-09f106ad9b8b" ], + "Date": [ "Mon, 26 Apr 2021 10:42:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4936" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"name\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"Microsoft.Storage/storageAccounts\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"jececyblobstorage\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\"},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/ecystorageaccount-ecystorageaccount-6cf6c912-e433-4614-ba78-f26a653d4085\",\"name\":\"ecystorageaccount-ecystorageaccount-6cf6c912-e433-4614-ba78-f26a653d4085\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"ecystorageaccount\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/ecystorageaccount\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/ecystorageaccount\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"ecystorageaccount\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/hiagaBlobsPolicy1\"},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/afsbackupsa1-afsbackupsa1-d321dc1a-8ad3-4835-b5a9-696a5e044b1f\",\"name\":\"afsbackupsa1-afsbackupsa1-d321dc1a-8ad3-4835-b5a9-696a5e044b1f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"afsbackupsa1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/afstests/providers/Microsoft.Storage/storageAccounts/afsbackupsa1\",\"resourceUri\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/afstests/providers/Microsoft.Storage/storageAccounts/afsbackupsa1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"afsbackupsa1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/adkayethpolicy\"},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Appropriate permissions to perform the operation is missing.\",\"recommendedAction\":[\"Grant appropriate permissions to perform this operation as mentioned at https://aka.ms/UserErrorMissingRequiredPermissions and retry the operation.\"],\"code\":\"UserErrorMissingRequiredPermissions\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"bfdc9e2c-e0ea-4b4e-913e-aef3c59eaf1c\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Appropriate permissions to perform the operation is missing.\",\"recommendedAction\":[\"Grant appropriate permissions to perform this operation as mentioned at https://aka.ms/UserErrorMissingRequiredPermissions and retry the operation.\"],\"code\":\"UserErrorMissingRequiredPermissions\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"bfdc9e2c-e0ea-4b4e-913e-aef3c59eaf1c\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}}]}", + "isContentBase64": false + } + }, + "Find-AzDataProtectionRestorableTimeRange+[NoContext]+PostExpanded+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b/findRestorableTimeRanges?api-version=2021-01-01+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b/findRestorableTimeRanges?api-version=2021-01-01", + "Content": "{\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"startTime\": \"2021-03-27T16:12:29.0000000Z\",\r\n \"endTime\": \"2021-04-26T16:12:29.0000000Z\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "143" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Microsoft-IIS/10.0" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "e128ed3c-bf7a-4185-ad47-1c50878c57ac" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104231Z:e128ed3c-bf7a-4185-ad47-1c50878c57ac" ], + "Date": [ "Mon, 26 Apr 2021 10:42:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "389" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges\",\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"2021-04-06T00:15:46.5556444Z\",\"endTime\":\"2021-04-26T10:42:31.2430158Z\",\"objectType\":\"RestorableTimeRange\"}],\"objectType\":\"AzureBackupFindRestorableTimeRangesResponse\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Tests.ps1 b/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Tests.ps1 new file mode 100644 index 000000000000..b7691dd4f4b0 --- /dev/null +++ b/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Tests.ps1 @@ -0,0 +1,37 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Find-AzDataProtectionRestorableTimeRange.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Find-AzDataProtectionRestorableTimeRange' { + It 'PostExpanded' { + $sub = $env.SubscriptionId + $rgName = $env.TestBlobsRestore.ResourceGroupName + $vaultName = $env.TestBlobsRestore.VaultName + + # $Debug preference = "Continue" + Write-Debug -Message $sub + Write-Debug -Message $rgName + Write-Debug -Message $vaultName + + $instances = Get-AzDataProtectionBackupInstance -Subscription $sub -ResourceGroup $rgName -Vault $vaultName | Where-Object {($_.Property.DataSourceInfo.Type -eq "Microsoft.Storage/storageAccounts/blobServices") -and ($_.Property.CurrentProtectionState -eq "ProtectionConfigured")} + + if($instances.Count -gt 0){ + + $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instances[0].BackupInstanceName -ResourceGroupName $rgName -SubscriptionId $sub -VaultName $vaultName -SourceDataStoreType OperationalStore -StartTime (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -EndTime (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") + + $assert = $pointInTimeRange.RestorableTimeRange.Count -gt 0 + $assert | Should be $true + } + + } +} + \ No newline at end of file diff --git a/src/DataProtection/test/Get-AzDataProtectionBackupInstance.Recording.json b/src/DataProtection/test/Get-AzDataProtectionBackupInstance.Recording.json index 1535289206dd..1a647aef9bb9 100644 --- a/src/DataProtection/test/Get-AzDataProtectionBackupInstance.Recording.json +++ b/src/DataProtection/test/Get-AzDataProtectionBackupInstance.Recording.json @@ -1,13 +1,13 @@ { - "Get-AzDataProtectionBackupInstance+[NoContext]+GetAll+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-02-01-preview+1": { + "Get-AzDataProtectionBackupInstance+[NoContext]+GetAll+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "cda6196c-b1cb-4cd8-adee-cd9296126b5d" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "74466683-665b-4140-b0e7-1d870546e602" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -27,29 +27,29 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], - "x-ms-correlation-request-id": [ "252374c0-b7b3-49ad-bb49-83ad1c2222f3" ], - "x-ms-routing-request-id": [ "CENTRALUSEUAP:20210312T065435Z:252374c0-b7b3-49ad-bb49-83ad1c2222f3" ], - "Date": [ "Fri, 12 Mar 2021 06:54:35 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "afb1d501-70b0-46b1-b6ee-f16ec1ba2291" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T092936Z:afb1d501-70b0-46b1-b6ee-f16ec1ba2291" ], + "Date": [ "Mon, 26 Apr 2021 09:29:35 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "6368" ], + "Content-Length": [ "11194" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-b0ee7a82-cd85-4026-a263-cf32a83b146a\",\"name\":\"sarathdisk2-sarathdisk2-b0ee7a82-cd85-4026-a263-cf32a83b146a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk2\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/newdiskpolicy-vgxrh5mld6\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-snapshot-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"name\":\"sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarath-disk3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarath-disk3\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarath-disk3\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-disk3\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-snapshot-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"454bcb51-9082-4d06-9b95-a91322038028-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"454bcb51-9082-4d06-9b95-a91322038028-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/hiagaDisk1-hiagaDisk1-7ec9b426-5a1b-4e3b-af37-213a40e0266b\",\"name\":\"hiagaDisk1-hiagaDisk1-7ec9b426-5a1b-4e3b-af37-213a40e0266b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"hiagaDisk1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/hiagaDisk1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/hiagaDisk1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"hiagaDisk1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/hiagaPSPolicy\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstestdisk2-pstestdisk2-b72ef488-fc30-4257-a2f0-b30528ee8e91\",\"name\":\"pstestdisk2-pstestdisk2-b72ef488-fc30-4257-a2f0-b30528ee8e91\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"pstestdisk2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstestdisk2\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstestdisk2\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"pstestdisk2\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"29b4ca94-65e2-4f4d-bf2d-85de95d7703f-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"29b4ca94-65e2-4f4d-bf2d-85de95d7703f-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk2\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-snapshot-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"name\":\"pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"pstest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"pstest\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"name\":\"sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarath-disk3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarath-disk3\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarath-disk3\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-disk3\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-snapshot-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"454bcb51-9082-4d06-9b95-a91322038028-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"454bcb51-9082-4d06-9b95-a91322038028-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"name\":\"sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk5\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/hiagaDisk1-hiagaDisk1-7ec9b426-5a1b-4e3b-af37-213a40e0266b\",\"name\":\"hiagaDisk1-hiagaDisk1-7ec9b426-5a1b-4e3b-af37-213a40e0266b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"hiagaDisk1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/hiagaDisk1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/hiagaDisk1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"hiagaDisk1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/hiagaPSPolicy\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}}]}", "isContentBase64": false } }, - "Get-AzDataProtectionBackupInstance+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-02-01-preview+1": { + "Get-AzDataProtectionBackupInstance+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "3abf89a1-4589-41bc-ad3d-9de24ff8cde8" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "b205daf5-be80-41c3-a551-4ed40ae3b752" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -69,29 +69,29 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], - "x-ms-correlation-request-id": [ "f8b81a0c-e682-4f15-9e66-374fcdfeb83e" ], - "x-ms-routing-request-id": [ "CENTRALUSEUAP:20210312T065436Z:f8b81a0c-e682-4f15-9e66-374fcdfeb83e" ], - "Date": [ "Fri, 12 Mar 2021 06:54:35 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-correlation-request-id": [ "9959fa56-2929-44ad-98d5-8fe64eb6bb23" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T092936Z:9959fa56-2929-44ad-98d5-8fe64eb6bb23" ], + "Date": [ "Mon, 26 Apr 2021 09:29:35 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "6368" ], + "Content-Length": [ "11194" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-b0ee7a82-cd85-4026-a263-cf32a83b146a\",\"name\":\"sarathdisk2-sarathdisk2-b0ee7a82-cd85-4026-a263-cf32a83b146a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk2\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/newdiskpolicy-vgxrh5mld6\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-snapshot-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"name\":\"sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarath-disk3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarath-disk3\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarath-disk3\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-disk3\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-snapshot-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"454bcb51-9082-4d06-9b95-a91322038028-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"454bcb51-9082-4d06-9b95-a91322038028-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/hiagaDisk1-hiagaDisk1-7ec9b426-5a1b-4e3b-af37-213a40e0266b\",\"name\":\"hiagaDisk1-hiagaDisk1-7ec9b426-5a1b-4e3b-af37-213a40e0266b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"hiagaDisk1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/hiagaDisk1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/hiagaDisk1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"hiagaDisk1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/hiagaPSPolicy\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstestdisk2-pstestdisk2-b72ef488-fc30-4257-a2f0-b30528ee8e91\",\"name\":\"pstestdisk2-pstestdisk2-b72ef488-fc30-4257-a2f0-b30528ee8e91\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"pstestdisk2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstestdisk2\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstestdisk2\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"pstestdisk2\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"29b4ca94-65e2-4f4d-bf2d-85de95d7703f-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"29b4ca94-65e2-4f4d-bf2d-85de95d7703f-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk2\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-snapshot-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"name\":\"pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"pstest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"pstest\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"name\":\"sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarath-disk3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarath-disk3\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarath-disk3\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-disk3\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-snapshot-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"454bcb51-9082-4d06-9b95-a91322038028-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"454bcb51-9082-4d06-9b95-a91322038028-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"name\":\"sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk5\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/hiagaDisk1-hiagaDisk1-7ec9b426-5a1b-4e3b-af37-213a40e0266b\",\"name\":\"hiagaDisk1-hiagaDisk1-7ec9b426-5a1b-4e3b-af37-213a40e0266b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"hiagaDisk1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/hiagaDisk1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/hiagaDisk1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"hiagaDisk1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/hiagaPSPolicy\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}}]}", "isContentBase64": false } }, - "Get-AzDataProtectionBackupInstance+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-b0ee7a82-cd85-4026-a263-cf32a83b146a?api-version=2021-02-01-preview+2": { + "Get-AzDataProtectionBackupInstance+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstestdisk2-pstestdisk2-b72ef488-fc30-4257-a2f0-b30528ee8e91?api-version=2021-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-b0ee7a82-cd85-4026-a263-cf32a83b146a?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstestdisk2-pstestdisk2-b72ef488-fc30-4257-a2f0-b30528ee8e91?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "1e0debe5-ac3e-423b-b991-e22999d398f6" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "7ccd8d1c-09e3-4cf7-9d30-91d00eb3a25a" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -111,17 +111,17 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], - "x-ms-correlation-request-id": [ "e25dcc97-fedc-472a-9395-2df023e48b40" ], - "x-ms-routing-request-id": [ "CENTRALUSEUAP:20210312T065438Z:e25dcc97-fedc-472a-9395-2df023e48b40" ], - "Date": [ "Fri, 12 Mar 2021 06:54:38 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-correlation-request-id": [ "dd77326d-015c-4ba6-b73e-4717c8961a22" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T092936Z:dd77326d-015c-4ba6-b73e-4717c8961a22" ], + "Date": [ "Mon, 26 Apr 2021 09:29:35 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1478" ], + "Content-Length": [ "1960" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-b0ee7a82-cd85-4026-a263-cf32a83b146a\",\"name\":\"sarathdisk2-sarathdisk2-b0ee7a82-cd85-4026-a263-cf32a83b146a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk2\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/newdiskpolicy-vgxrh5mld6\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-snapshot-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}}", + "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstestdisk2-pstestdisk2-b72ef488-fc30-4257-a2f0-b30528ee8e91\",\"name\":\"pstestdisk2-pstestdisk2-b72ef488-fc30-4257-a2f0-b30528ee8e91\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"pstestdisk2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstestdisk2\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstestdisk2\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"pstestdisk2\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"29b4ca94-65e2-4f4d-bf2d-85de95d7703f-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"29b4ca94-65e2-4f4d-bf2d-85de95d7703f-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}}", "isContentBase64": false } } diff --git a/src/DataProtection/test/Get-AzDataProtectionBackupPolicy.Recording.json b/src/DataProtection/test/Get-AzDataProtectionBackupPolicy.Recording.json index 776cd2fa6f4a..d3827b7f3d87 100644 --- a/src/DataProtection/test/Get-AzDataProtectionBackupPolicy.Recording.json +++ b/src/DataProtection/test/Get-AzDataProtectionBackupPolicy.Recording.json @@ -1,13 +1,13 @@ { - "Get-AzDataProtectionBackupPolicy+[NoContext]+List+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-02-01-preview+1": { + "Get-AzDataProtectionBackupPolicy+[NoContext]+List+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "6be69a60-a89c-4066-8515-b623f3e990e2" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "4ce3fa7e-edb6-4b31-aa5b-d79ecc2692cc" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -27,17 +27,17 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], - "x-ms-correlation-request-id": [ "4a82d5c9-bbf8-492f-a7d9-b614f06fde33" ], - "x-ms-routing-request-id": [ "CENTRALUSEUAP:20210312T065439Z:4a82d5c9-bbf8-492f-a7d9-b614f06fde33" ], - "Date": [ "Fri, 12 Mar 2021 06:54:39 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-correlation-request-id": [ "b22893fe-2345-42df-859a-1e35aaf2e053" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T092937Z:b22893fe-2345-42df-859a-1e35aaf2e053" ], + "Date": [ "Mon, 26 Apr 2021 09:29:37 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "6368" ], + "Content-Length": [ "11194" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-b0ee7a82-cd85-4026-a263-cf32a83b146a\",\"name\":\"sarathdisk2-sarathdisk2-b0ee7a82-cd85-4026-a263-cf32a83b146a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk2\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/newdiskpolicy-vgxrh5mld6\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-snapshot-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"name\":\"sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarath-disk3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarath-disk3\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarath-disk3\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-disk3\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-snapshot-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"454bcb51-9082-4d06-9b95-a91322038028-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"454bcb51-9082-4d06-9b95-a91322038028-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/hiagaDisk1-hiagaDisk1-7ec9b426-5a1b-4e3b-af37-213a40e0266b\",\"name\":\"hiagaDisk1-hiagaDisk1-7ec9b426-5a1b-4e3b-af37-213a40e0266b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"hiagaDisk1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/hiagaDisk1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/hiagaDisk1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"hiagaDisk1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/hiagaPSPolicy\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstestdisk2-pstestdisk2-b72ef488-fc30-4257-a2f0-b30528ee8e91\",\"name\":\"pstestdisk2-pstestdisk2-b72ef488-fc30-4257-a2f0-b30528ee8e91\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"pstestdisk2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstestdisk2\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstestdisk2\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"pstestdisk2\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"29b4ca94-65e2-4f4d-bf2d-85de95d7703f-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"29b4ca94-65e2-4f4d-bf2d-85de95d7703f-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk2\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-snapshot-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"name\":\"pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"pstest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"pstest\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"name\":\"sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarath-disk3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarath-disk3\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarath-disk3\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-disk3\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-snapshot-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"454bcb51-9082-4d06-9b95-a91322038028-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Generic Internal Server Error in DataStore\",\"recommendedAction\":[\"\"],\"code\":\"DataStoreInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"454bcb51-9082-4d06-9b95-a91322038028-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"name\":\"sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"sarathdisk5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk5\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/hiagaDisk1-hiagaDisk1-7ec9b426-5a1b-4e3b-af37-213a40e0266b\",\"name\":\"hiagaDisk1-hiagaDisk1-7ec9b426-5a1b-4e3b-af37-213a40e0266b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"hiagaDisk1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/hiagaDisk1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/hiagaDisk1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"hiagaDisk1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/hiagaPSPolicy\",\"policyParameters\":{\"dataStoreParametersList\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}}]}", "isContentBase64": false } } diff --git a/src/DataProtection/test/Get-AzDataProtectionBackupVault.Recording.json b/src/DataProtection/test/Get-AzDataProtectionBackupVault.Recording.json index c8daf37d8586..0a04aac9ac26 100644 --- a/src/DataProtection/test/Get-AzDataProtectionBackupVault.Recording.json +++ b/src/DataProtection/test/Get-AzDataProtectionBackupVault.Recording.json @@ -1,13 +1,13 @@ { - "Get-AzDataProtectionBackupVault+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2021-02-01-preview+1": { + "Get-AzDataProtectionBackupVault+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2021-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "949959bb-b51a-4ae7-aa6d-e4021d650a68" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "8eed9a29-0f95-471d-a57e-4fca9aafc28f" ], "CommandName": [ "Get-AzDataProtectionBackupVault" ], "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -27,10 +27,10 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], - "x-ms-correlation-request-id": [ "76690fb0-1209-49dd-9832-192c05c6fb59" ], - "x-ms-routing-request-id": [ "CENTRALUSEUAP:20210312T065443Z:76690fb0-1209-49dd-9832-192c05c6fb59" ], - "Date": [ "Fri, 12 Mar 2021 06:54:43 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "x-ms-correlation-request-id": [ "73b4f21a-e18b-4ab9-b5a1-3fc23e08bc77" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T092938Z:73b4f21a-e18b-4ab9-b5a1-3fc23e08bc77" ], + "Date": [ "Mon, 26 Apr 2021 09:29:38 GMT" ] }, "ContentHeaders": { "Content-Length": [ "506" ], diff --git a/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Recording.json b/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Recording.json new file mode 100644 index 000000000000..9b7f9d2021d8 --- /dev/null +++ b/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Recording.json @@ -0,0 +1,1423 @@ +{ + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances?api-version=2021-01-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "7adf7343-c8f9-4a4f-8e61-b01ee77da1fc" ], + "CommandName": [ "Get-AzDataProtectionBackupInstance" ], + "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Microsoft-IIS/10.0" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "047108e0-67cf-4c69-bcd0-620d61013150" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104303Z:047108e0-67cf-4c69-bcd0-620d61013150" ], + "Date": [ "Mon, 26 Apr 2021 10:43:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4936" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"name\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"Microsoft.Storage/storageAccounts\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"jececyblobstorage\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\"},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/ecystorageaccount-ecystorageaccount-6cf6c912-e433-4614-ba78-f26a653d4085\",\"name\":\"ecystorageaccount-ecystorageaccount-6cf6c912-e433-4614-ba78-f26a653d4085\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"ecystorageaccount\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/ecystorageaccount\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/ecystorageaccount\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"ecystorageaccount\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/hiagaBlobsPolicy1\"},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}},{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/afsbackupsa1-afsbackupsa1-d321dc1a-8ad3-4835-b5a9-696a5e044b1f\",\"name\":\"afsbackupsa1-afsbackupsa1-d321dc1a-8ad3-4835-b5a9-696a5e044b1f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\",\"properties\":{\"friendlyName\":\"afsbackupsa1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/afstests/providers/Microsoft.Storage/storageAccounts/afsbackupsa1\",\"resourceUri\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/afstests/providers/Microsoft.Storage/storageAccounts/afsbackupsa1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"afsbackupsa1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/adkayethpolicy\"},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Appropriate permissions to perform the operation is missing.\",\"recommendedAction\":[\"Grant appropriate permissions to perform this operation as mentioned at https://aka.ms/UserErrorMissingRequiredPermissions and retry the operation.\"],\"code\":\"UserErrorMissingRequiredPermissions\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"bfdc9e2c-e0ea-4b4e-913e-aef3c59eaf1c\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Appropriate permissions to perform the operation is missing.\",\"recommendedAction\":[\"Grant appropriate permissions to perform this operation as mentioned at https://aka.ms/UserErrorMissingRequiredPermissions and retry the operation.\"],\"code\":\"UserErrorMissingRequiredPermissions\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"bfdc9e2c-e0ea-4b4e-913e-aef3c59eaf1c\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"}}]}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b/findRestorableTimeRanges?api-version=2021-01-01+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b/findRestorableTimeRanges?api-version=2021-01-01", + "Content": "{\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"startTime\": \"2021-03-27T16:13:03.0000000Z\",\r\n \"endTime\": \"2021-04-26T16:13:03.0000000Z\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "143" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Microsoft-IIS/10.0" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "6c677e27-4220-4c38-8b59-e7d88574c20a" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104304Z:6c677e27-4220-4c38-8b59-e7d88574c20a" ], + "Date": [ "Mon, 26 Apr 2021 10:43:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "389" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges\",\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"2021-04-06T00:15:46.5556444Z\",\"endTime\":\"2021-04-26T10:43:03.8997316Z\",\"objectType\":\"RestorableTimeRange\"}],\"objectType\":\"AzureBackupFindRestorableTimeRangesResponse\"}}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault?api-version=2021-01-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "b6644e5d-826a-4ad0-9ec2-2e6abb52ba30" ], + "CommandName": [ "Get-AzDataProtectionBackupVault" ], + "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Microsoft-IIS/10.0" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "af70b4f8-babd-404f-b7fe-a2c9002cf401" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104304Z:af70b4f8-babd-404f-b7fe-a2c9002cf401" ], + "Date": [ "Mon, 26 Apr 2021 10:43:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "529" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"location\":\"eastus2euap\",\"tags\":{},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"d3026af2-1184-47e4-bed5-0a29b48d8fa3\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/BackupVaults/jecECYBlobVault\",\"name\":\"jecECYBlobVault\",\"type\":\"Microsoft.DataProtection/backupVaults\",\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}]}}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b/restore?api-version=2021-01-01+4": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b/restore?api-version=2021-01-01", + "Content": "{\r\n \"restoreTargetInfo\": {\r\n \"objectType\": \"restoreTargetInfo\",\r\n \"recoveryOption\": \"FailIfExists\",\r\n \"restoreLocation\": \"eastus2euap\",\r\n \"datasourceInfo\": {\r\n \"datasourceType\": \"Microsoft.Storage/storageAccounts/blobServices\",\r\n \"objectType\": \"Datasource\",\r\n \"resourceID\": \"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\r\n \"resourceLocation\": \"eastus2euap\",\r\n \"resourceName\": \"jececyblobstorage\",\r\n \"resourceType\": \"Microsoft.Storage/storageAccounts\",\r\n \"resourceUri\": \"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\"\r\n }\r\n },\r\n \"objectType\": \"AzureBackupRecoveryTimeBasedRestoreRequest\",\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"recoveryPointTime\": \"2021-04-26T10:43:03.0000000Z\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "950" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationResults/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzhjY2FmODZiLTdkZDAtNDRlOC04ZjI2LTdmZWMyMGI2ZGE1Mg==?api-version=2021-01-01" ], + "Retry-After": [ "30" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzhjY2FmODZiLTdkZDAtNDRlOC04ZjI2LTdmZWMyMGI2ZGE1Mg==?api-version=2021-01-01" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "e053d8a2-3d37-472f-afc0-51c5f963bfca" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104305Z:e053d8a2-3d37-472f-afc0-51c5f963bfca" ], + "Date": [ "Mon, 26 Apr 2021 10:43:04 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzhjY2FmODZiLTdkZDAtNDRlOC04ZjI2LTdmZWMyMGI2ZGE1Mg==?api-version=2021-01-01+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzhjY2FmODZiLTdkZDAtNDRlOC04ZjI2LTdmZWMyMGI2ZGE1Mg==?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "2583cd56-e12c-426a-af6e-a3925b81ad3f" ], + "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], + "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Microsoft-IIS/10.0" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "5d173036-eb35-4227-ba03-97416ba8218c" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104335Z:5d173036-eb35-4227-ba03-97416ba8218c" ], + "Date": [ "Mon, 26 Apr 2021 10:43:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "704" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzhjY2FmODZiLTdkZDAtNDRlOC04ZjI2LTdmZWMyMGI2ZGE1Mg==\",\"name\":\"Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzhjY2FmODZiLTdkZDAtNDRlOC04ZjI2LTdmZWMyMGI2ZGE1Mg==\",\"status\":\"Succeeded\",\"startTime\":\"2021-04-26T10:43:04.8592985Z\",\"endTime\":\"2021-04-26T10:43:06Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/BackupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationResults/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzhjY2FmODZiLTdkZDAtNDRlOC04ZjI2LTdmZWMyMGI2ZGE1Mg==?api-version=2021-01-01+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationResults/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzhjY2FmODZiLTdkZDAtNDRlOC04ZjI2LTdmZWMyMGI2ZGE1Mg==?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "2583cd56-e12c-426a-af6e-a3925b81ad3f" ], + "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], + "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "30" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzhjY2FmODZiLTdkZDAtNDRlOC04ZjI2LTdmZWMyMGI2ZGE1Mg==?api-version=2021-01-01" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ "Microsoft-IIS/10.0" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "34106c54-24db-4ce5-8411-155c643bd2f2" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104335Z:34106c54-24db-4ce5-8411-155c643bd2f2" ], + "Date": [ "Mon, 26 Apr 2021 10:43:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "249" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/BackupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"objectType\":\"OperationJobExtendedInfo\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "f8686d9b-c893-48fa-8ec4-a5152a2b1871" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "b8008886-f64a-4c5e-8866-b92031b392ee" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104346Z:b8008886-f64a-4c5e-8866-b92031b392ee" ], + "Date": [ "Mon, 26 Apr 2021 10:43:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "800494b4-3045-4947-aa18-3d57c4d72039" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "940d01ad-0c26-474f-9e55-e9ecb7b9e2a7" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104356Z:940d01ad-0c26-474f-9e55-e9ecb7b9e2a7" ], + "Date": [ "Mon, 26 Apr 2021 10:43:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "357f77ab-82e4-48d8-ab0f-8096103126bb" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "7499aef5-33a1-452d-84b6-ca50eb76c784" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104407Z:7499aef5-33a1-452d-84b6-ca50eb76c784" ], + "Date": [ "Mon, 26 Apr 2021 10:44:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "9641cf5a-a8df-49f6-9249-65aab392921a" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "743fefc1-7586-49ec-815e-5f5379f77548" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104417Z:743fefc1-7586-49ec-815e-5f5379f77548" ], + "Date": [ "Mon, 26 Apr 2021 10:44:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "391a6fad-399b-45c9-a6c1-5caa01adc81c" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "b87627f9-d245-4e91-8b1a-a5553fe5dc3c" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104428Z:b87627f9-d245-4e91-8b1a-a5553fe5dc3c" ], + "Date": [ "Mon, 26 Apr 2021 10:44:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "89c65bfd-f188-43ec-b20e-7955a1c951fb" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "549b6e9d-ce0b-4a26-bc94-42efe0812284" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104438Z:549b6e9d-ce0b-4a26-bc94-42efe0812284" ], + "Date": [ "Mon, 26 Apr 2021 10:44:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "e5c4db80-9bf1-46f5-977f-064ff41865a4" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "543571f8-e05b-4c19-8b5a-4dedbfcc3a42" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104448Z:543571f8-e05b-4c19-8b5a-4dedbfcc3a42" ], + "Date": [ "Mon, 26 Apr 2021 10:44:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "bdf468db-55aa-411c-9433-92c6282ade4f" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "75f9f1c5-9fbc-40b0-a269-6cca931dd1cb" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104459Z:75f9f1c5-9fbc-40b0-a269-6cca931dd1cb" ], + "Date": [ "Mon, 26 Apr 2021 10:44:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "dab1c068-456e-495b-b15c-a5dab9d5ed82" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "336d8483-ee12-4b89-b3a8-9b120e3313e6" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104509Z:336d8483-ee12-4b89-b3a8-9b120e3313e6" ], + "Date": [ "Mon, 26 Apr 2021 10:45:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "c147bbd0-6450-4f4f-bca2-8010a4194edb" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "3cc89d3c-8bce-4368-99b2-be754c66c0fe" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104520Z:3cc89d3c-8bce-4368-99b2-be754c66c0fe" ], + "Date": [ "Mon, 26 Apr 2021 10:45:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "adc86678-ed0c-47d5-9ba1-19927673bac5" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "f815fee5-bb42-42eb-927e-cece7d1d1c04" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104531Z:f815fee5-bb42-42eb-927e-cece7d1d1c04" ], + "Date": [ "Mon, 26 Apr 2021 10:45:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "9314d680-c06f-448b-bae3-fadc8c1a8f94" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "5a81e874-caeb-4ea6-adb8-0a309fc956d1" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104541Z:5a81e874-caeb-4ea6-adb8-0a309fc956d1" ], + "Date": [ "Mon, 26 Apr 2021 10:45:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "45659acb-4d6d-4928-b811-4813d74964bf" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "8a4a3f7f-f53d-4b91-8a12-b9e3081f9d36" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104551Z:8a4a3f7f-f53d-4b91-8a12-b9e3081f9d36" ], + "Date": [ "Mon, 26 Apr 2021 10:45:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "55147a18-9388-4978-a32b-f7d4da3a0c09" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "6971e174-dfbe-48b3-ae97-5b3f408ea001" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104603Z:6971e174-dfbe-48b3-ae97-5b3f408ea001" ], + "Date": [ "Mon, 26 Apr 2021 10:46:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "92d61c36-fffe-455d-b560-cf28b5c90c15" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "4e9520d8-7723-4b96-a6c0-cb820c915317" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104613Z:4e9520d8-7723-4b96-a6c0-cb820c915317" ], + "Date": [ "Mon, 26 Apr 2021 10:46:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+22": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "d9d813fa-77e3-4649-84c4-851e2c6f79de" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "3487330d-260a-4289-9ab6-4ff5b8624a60" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104624Z:3487330d-260a-4289-9ab6-4ff5b8624a60" ], + "Date": [ "Mon, 26 Apr 2021 10:46:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+23": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "51eab9f6-454c-4bfc-9bd0-e74020e432a0" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "059af206-ffed-4994-a4a2-f13118b537ea" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104635Z:059af206-ffed-4994-a4a2-f13118b537ea" ], + "Date": [ "Mon, 26 Apr 2021 10:46:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+24": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "238da7a2-944a-499c-9bd3-4fa2ba25c40a" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "d353db5c-32b2-44d9-9a63-e8baea13b4b7" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104646Z:d353db5c-32b2-44d9-9a63-e8baea13b4b7" ], + "Date": [ "Mon, 26 Apr 2021 10:46:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+25": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "379ef527-7a00-4393-ac31-3f003e289239" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "97293377-529e-436f-90ab-25a15d64bbde" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104656Z:97293377-529e-436f-90ab-25a15d64bbde" ], + "Date": [ "Mon, 26 Apr 2021 10:46:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+26": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "0e2468b2-0e10-40d5-a9c0-bef9d8647f70" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "f4c28c75-f893-42d5-8b07-c85b450e1351" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104707Z:f4c28c75-f893-42d5-8b07-c85b450e1351" ], + "Date": [ "Mon, 26 Apr 2021 10:47:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+27": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "d3f1171a-f94b-4380-ab77-c15c0c527d96" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "576a5817-4600-451f-a400-f7c64731e167" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104717Z:576a5817-4600-451f-a400-f7c64731e167" ], + "Date": [ "Mon, 26 Apr 2021 10:47:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+28": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "24283f02-27d9-4051-bd81-c8a268f7d538" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "fe4b706a-64ba-4b8e-86ea-240d46c8b5eb" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104727Z:fe4b706a-64ba-4b8e-86ea-240d46c8b5eb" ], + "Date": [ "Mon, 26 Apr 2021 10:47:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+29": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "8543776d-5ad1-40f0-9356-f010827a92df" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "617b8598-8ff8-4bb8-a432-ad3e5600ed24" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104738Z:617b8598-8ff8-4bb8-a432-ad3e5600ed24" ], + "Date": [ "Mon, 26 Apr 2021 10:47:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+30": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "24973a71-4e02-4cae-b8ef-d00698a30aa8" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "983d3440-781e-49ae-8c9d-c499caec9c1c" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104748Z:983d3440-781e-49ae-8c9d-c499caec9c1c" ], + "Date": [ "Mon, 26 Apr 2021 10:47:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+31": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "673eabf5-15b8-4f25-b2d3-335ed2d9c463" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "c2840a72-e95c-469f-9122-9d38525efd3b" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104759Z:c2840a72-e95c-469f-9122-9d38525efd3b" ], + "Date": [ "Mon, 26 Apr 2021 10:47:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+32": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "0e358ee4-f9d6-4adc-8c11-ad81740ee602" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "7ef800c4-8424-4611-9602-69caba84f4bd" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104809Z:7ef800c4-8424-4611-9602-69caba84f4bd" ], + "Date": [ "Mon, 26 Apr 2021 10:48:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+33": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "35dcb254-585d-4ad5-9ff5-3457bf294a9c" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "c1b86190-104b-4320-bb26-94b69263f572" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104820Z:c1b86190-104b-4320-bb26-94b69263f572" ], + "Date": [ "Mon, 26 Apr 2021 10:48:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2380" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A43%3A05.6851061Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01+34": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736?api-version=2021-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "8dc7c892-93cc-4896-8a0e-529eed0768da" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], + "X-Powered-By": [ "ASP.NET" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "4fd6d355-84f8-4587-80c1-9d1624645b0e" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210426T104830Z:4fd6d355-84f8-4587-80c1-9d1624645b0e" ], + "Date": [ "Mon, 26 Apr 2021 10:48:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2413" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"2583cd56-e12c-426a-af6e-a3925b81ad3f\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-04-26T10%3A48%3A22.419201Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-04-26T10:43:05.2361646Z\",\"endTime\":\"2021-04-26T10:48:21.9860766Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT5M16.749912S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-04-26T10:43:03Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/2c98f2df-d99b-46a0-8399-3c112816e736\",\"name\":\"2c98f2df-d99b-46a0-8399-3c112816e736\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Tests.ps1 b/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Tests.ps1 index 18d2d8934d2d..e8c10e1a6458 100644 --- a/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Tests.ps1 +++ b/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Tests.ps1 @@ -12,7 +12,33 @@ while(-not $mockingPath) { . ($mockingPath | Select-Object -First 1).FullName Describe 'Initialize-AzDataProtectionRestoreRequest' { - It '__AllParameterSets' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It '__AllParameterSets' { + $sub = $env.SubscriptionId + $rgName = $env.TestBlobsRestore.ResourceGroupName + $vaultName = $env.TestBlobsRestore.VaultName + + # $Debug preference = "Continue" + Write-Debug -Message $sub + Write-Debug -Message $rgName + Write-Debug -Message $vaultName + + $instances = Get-AzDataProtectionBackupInstance -Subscription $sub -ResourceGroup $rgName -Vault $vaultName | Where-Object {($_.Property.DataSourceInfo.Type -eq "Microsoft.Storage/storageAccounts/blobServices") -and ($_.Property.CurrentProtectionState -eq "ProtectionConfigured")} + + if($instances.Count -gt 0){ + + $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instances[0].BackupInstanceName -ResourceGroupName $rgName -SubscriptionId $sub -VaultName $vaultName -SourceDataStoreType OperationalStore -StartTime (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -EndTime (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") + $vault = Get-AzDataProtectionBackupVault -ResourceGroupName $rgName -SubscriptionId $sub -VaultName $vaultName + $BlobResReq = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date -Date $pointInTimeRange.RestorableTimeRange.EndTime) + + $restoreJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instances[0].BackupInstanceName -ResourceGroupName $rgName -VaultName $vaultName -SubscriptionId $sub -Parameter $BlobResReq + $jobid = $restoreJob.JobId.Split("/")[-1] + $jobstatus = "InProgress" + while($jobstatus -ne "Completed") + { + Start-Sleep -Seconds 10 + $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId $sub -ResourceGroupName $rgName -VaultName $vaultName + $jobstatus = $currentjob.Status + } + } } } diff --git a/src/DataProtection/test/New-AzDataProtectionBackupVault.Recording.json b/src/DataProtection/test/New-AzDataProtectionBackupVault.Recording.json index 1ee6ff62b030..230db03d6359 100644 --- a/src/DataProtection/test/New-AzDataProtectionBackupVault.Recording.json +++ b/src/DataProtection/test/New-AzDataProtectionBackupVault.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-02-01-preview+1": { + "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-01-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-01-01", "Content": "{\r\n \"location\": \"centraluseuap\",\r\n \"properties\": {\r\n \"storageSettings\": [\r\n {\r\n \"datastoreType\": \"VaultStore\",\r\n \"type\": \"LocallyRedundant\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -18,7 +18,7 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/OTg1NmQyOTItMjNkNC00ZjY5LTk4YjMtN2FkMmRlY2FkN2MyO2YxYzJmOTk5LTUzNGMtNDVhMi1iZWJkLTI1YTExZDU1MzI2Yw==?api-version=2021-02-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/OTg1NmQyOTItMjNkNC00ZjY5LTk4YjMtN2FkMmRlY2FkN2MyO2YxYzJmOTk5LTUzNGMtNDVhMi1iZWJkLTI1YTExZDU1MzI2Yw==?api-version=2021-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -38,10 +38,10 @@ "isContentBase64": false } }, - "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/OTg1NmQyOTItMjNkNC00ZjY5LTk4YjMtN2FkMmRlY2FkN2MyO2YxYzJmOTk5LTUzNGMtNDVhMi1iZWJkLTI1YTExZDU1MzI2Yw==?api-version=2021-02-01-preview+2": { + "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/OTg1NmQyOTItMjNkNC00ZjY5LTk4YjMtN2FkMmRlY2FkN2MyO2YxYzJmOTk5LTUzNGMtNDVhMi1iZWJkLTI1YTExZDU1MzI2Yw==?api-version=2021-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/OTg1NmQyOTItMjNkNC00ZjY5LTk4YjMtN2FkMmRlY2FkN2MyO2YxYzJmOTk5LTUzNGMtNDVhMi1iZWJkLTI1YTExZDU1MzI2Yw==?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/OTg1NmQyOTItMjNkNC00ZjY5LTk4YjMtN2FkMmRlY2FkN2MyO2YxYzJmOTk5LTUzNGMtNDVhMi1iZWJkLTI1YTExZDU1MzI2Yw==?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -80,10 +80,10 @@ "isContentBase64": false } }, - "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-02-01-preview+3": { + "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-01-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -122,10 +122,10 @@ "isContentBase64": false } }, - "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-02-01-preview+4": { + "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-01-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -164,10 +164,10 @@ "isContentBase64": false } }, - "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-02-01-preview+5": { + "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-01-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-02-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-vgxrh5mld6?api-version=2021-01-01", "Content": null, "isContentBase64": false, "Headers": { @@ -187,9 +187,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/OTg1NmQyOTItMjNkNC00ZjY5LTk4YjMtN2FkMmRlY2FkN2MyOzllZTgwM2MyLWJlM2YtNDQ5Ni05M2UxLTA5MGIwNWY2MTdhZA==?api-version=2021-02-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/OTg1NmQyOTItMjNkNC00ZjY5LTk4YjMtN2FkMmRlY2FkN2MyOzllZTgwM2MyLWJlM2YtNDQ5Ni05M2UxLTA5MGIwNWY2MTdhZA==?api-version=2021-01-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/OTg1NmQyOTItMjNkNC00ZjY5LTk4YjMtN2FkMmRlY2FkN2MyOzllZTgwM2MyLWJlM2YtNDQ5Ni05M2UxLTA5MGIwNWY2MTdhZA==?api-version=2021-02-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/OTg1NmQyOTItMjNkNC00ZjY5LTk4YjMtN2FkMmRlY2FkN2MyOzllZTgwM2MyLWJlM2YtNDQ5Ni05M2UxLTA5MGIwNWY2MTdhZA==?api-version=2021-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], diff --git a/src/DataProtection/test/env.json b/src/DataProtection/test/env.json index 92fb666fb095..d9092676525e 100644 --- a/src/DataProtection/test/env.json +++ b/src/DataProtection/test/env.json @@ -1,4 +1,8 @@ { + "TestBlobsRestore": { + "VaultName": "jecECYBlobVault", + "ResourceGroupName": "BlobBackup-BugBash" + }, "TestDiskBackupScenario": { "VaultName": "sarath-vault", "RestoreDiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvgxrh5mld6", diff --git a/src/DataProtection/test/utils.ps1 b/src/DataProtection/test/utils.ps1 index 7b6e52771110..bde3875e35ea 100644 --- a/src/DataProtection/test/utils.ps1 +++ b/src/DataProtection/test/utils.ps1 @@ -57,12 +57,18 @@ function setupEnv() { BackupRuleName = "BackupHourly" } + $BlobsRestoreVariables = @{ + ResourceGroupName = "BlobBackup-BugBash" + VaultName = "jecECYBlobVault" + } + $env.add("TestBackupInstance", $BackupInstanceTestVariables) | Out-Null $env.add("TestBackupPolicy", $BackupPolicyTestVariables) | Out-Null $env.add("TestBackupVault", $BackupVaultTestVariables) | Out-Null $env.add("TestBackupJob", $BackupJobTestVariables) | Out-Null $env.add("TestDiskBackupScenario", $DiskE2ETestVariables) | Out-Null $env.add("TestTriggerBackup", $TriggerBackupTestVariables) | Out-Null + $env.add("TestBlobsRestore", $BlobsRestoreVariables) | Out-Null $envFile = 'env.json' if ($TestMode -eq 'live') {